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.
.
Not sure the language you're coding in, but testing this in Python:
Those are not the duplicates you are looking for.: [1, 3, 4] should equal [4, 3, 1]
hahaha!
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."
yes, differences here
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
You can tag a comment as "issue". That way a moderator can immediately see that there's something wrong with the kata before he approves it.
The tests are just testing length so you could definitely pass with the wrong results, you should test array content instead or both.
Loading more items...