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.
neato!
Should we assume the Value function already exists?
Oh, just kidding "For this Kata the Value type will be preloaded in your environment. "
What happens when you call toString on timesFive? You'll find it doesn't give "var timesFive = function () { var five = 5; return function (a) { return five * x; }; }();" so you'll need to find a solution that does.
This comment is hidden because it contains spoiler information about the solution
Pretend you are reading a long number to someone over the phone simply. Like "Yes, it's one one, two twos, one nine." Which would be 112219 in this sequence. And then read THAT number to someone. So it's "Two ones, two twos, one one, one nine."
I'm a bit newish to JS, but isn't this just a function (functionname(args)) rather than a method (array.method)?
Yep, when I console.log the variables, it shows EVERY of the random ones expects to be false, so I hardcoded the true non-random ones into my answer and passed even though my code was wrong.
Is the obj being tested different from the obj in the description?
Edit: yes, it is.
This comment is hidden because it contains spoiler information about the solution
The tests are just testing length so you could definitely pass with the wrong results, you should test array content instead or both.
I had trouble with the random ones too. Console logging the arguments helped me figure out what I was doing wrong.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution