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.
my code outputs that everything is correct except for empty arrays, like this error: last( [] ) == null - Expected: null, instead got: undefined.
what's wrong with it?
voted as "somewhat" for being at 8-kyu-level.
I've started from filter, but the test found it incorrect, and then I tried many methods, including endsWith, for loop, map, when I re-read the task and found out that it was saying to output even numbers, when I was trying to output odd ones. What a waste of time by me
I imagine putting this code on a simple calculator.
This comment is hidden because it contains spoiler information about the solution
I solved the kata with while loop, but have exactly no idea what's going on here.
thank you for the explanation bro! it's very necessary for gods of js like me :D
Coding is a good job if you love it or just got interested in it. If you see no meaning in it, find another job, but if you see some, learn it step-by-step. It's like any other job will start rewarding you, but unlike the others, it'll do it exponentially. Like "the more you give, the more you get**2"
This kata of 6kyu took me 3 minutes to solve, whereas I know some 8kyu katas that had taken hours!
This comment is hidden because it contains spoiler information about the solution
kill the system. I love it
for 1 hour I was just staring at the code and didn't know how to solve my problem, now I see that it was only in adding the ",0" part in reduce. please let me cry.
This comment is hidden because it contains spoiler information about the solution
you are not alone bro, same here
This comment is hidden because it contains spoiler information about the solution