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.
Nice
one question. I was looking about the join and best practices. But I have not found any info.
Why is not a best practice the use of join? do you have a link or a little explanation about that, pls :)
I didn't even think of using a map. Was so focused on iterating through the array and working with a string it didn't even occur to me. Tunnel vision.
Very hard for beginner!
This comment is hidden because it contains spoiler information about the solution
"expected [ 1, [ 2, 3 ], …(2) ] to deeply equal [ 1, [ 2, 3 ], …(2) ]"
"expected [ …(5) ] to deeply equal [ …(5) ]"
:)
I essentially did the same code but declaring arrays and variables. This is much smoother !
Great solution! I like how you only need to use the reverse method once, so it makes it faster than the 2nd popular option.
This comment is hidden because it contains spoiler information about the solution
A linting tool will warn you about the use of nested ternary operators. This reduces clarity.
wish i can do same
ok
Please use spoiler flag. Comments are visible from the dashboard.
This comment is hidden because it contains spoiler information about the solution
The description should be completely rewritten as as of now it's incomprehensible:
tryCode([1, 0, -1])
//[0, 2, 4]
isn't the solution..." - why is there no output? And why is the JavaScript's single-line-comment syntax used in the middle of the text?Loading more items...