You need to sign in or sign up before continuing.×
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.
So is it not adding/removing coins from its stock?
Well chances are I forgot it. I've been trying Python kata before I officially learn the method/loop to see how quick I can pick it up after JS. So focused on the workings I'm making tiny errors.
facepalm. I swore I used +=
This comment is hidden because it contains spoiler information about the solution
Why does this work? Or does it only work for this situation in which a password has no spaces or other special chars?
I don't mean I'm failing different tests, I mean if I click submit over and over, the amount I get wrong change. Unless you mean the tests literally change every time I submit?
EDIT: 5mins after posting:
wow, they are literally random. Ok that helps a lot more!
This comment is hidden because it contains spoiler information about the solution
Amount of failed tests keeps changing, hard to know what to change if the program doesn't even know how to read.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm a beginner, but is there something i should know when tackling this problem? And/or will I actually need to write down all possible math combinations in the code(but with coding, prob of course not)?
My entire code wasn't even following the instructions (add ALL the numbers). Back to drawing board.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
My code works both on brackets and seemingly on this as well; the tests show my results matching the expected, but then it says that it received undefined. What???
EDIT: I'll leave this here as just testament to my own mistake and owning up to it. Use to using console.log and not return. Simply changing to return fixes all. Sorry!