Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
function is a void type but the instructions ask me to return something?
amazing thankyou!
This comment is hidden because it contains spoiler information about the solution
Thanks! I kicked myself a few times and added a ternery at the bottom to handle this.
But now it fails because it received 0 but expected -4
edit: I had written an incorrect test XD
My code is passing some tests but a couple of them are kicking back. Logs and test below, I can't make sense of it!
I think the test value is incorrect in this case?
Log
Question 1:
Wrong answer, -1 point
Score is now -1
Question 2:
blank answer, 0 points
Score is now -1
Question 3:
blank answer, 0 points
Score is now -1
Question 4:
Wrong answer, -1 point
Score is now -2
total points is -2
Test Failed
Should return 0 with ["b", "d", "a", "c"] and ["a", "", "", "b"]
Expected: 0
But was: -2
because you haven't returned anything?
I hadn't even finished this, why is it here?
nice simple regex solution to replace the word, but how does it return the string?