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.
OMG always forget about index functions, this is a really clever solution.
The most clever solution here. Haha.
good idea.
This comment is hidden because it contains spoiler information about the solution
what 😭😭😭😭😭😭
(btw great code)
this solution is better than the top voted one because it also includes yourPoints
The best version !
This comment is hidden because it contains spoiler information about the solution
great man! i love this 👍🏼
The backticks are a template literal (specifically look at tagged templates on MDN for more info on this use) which is being used to call the join function with an empty string as the parameter. This is done so that it joins our reversed array with an empty string / no delimiter instead of the default comma delimiter that join would use if we called it like
a.join()
The TLDR it does the same thing as
a.join("")
, but more concisely and less readablyThe g after the regex is specifies that you want the pattern to match globally.
The ellipsis is the spread operator where you can spread a string into an array of characters
And for the last one, I do not know as I have not looked at the source code.
Hope this helps you. :)
I have a few questions:
I'm a beginner at JS, mind (I know Java better, though)
amazing