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.
This comment is hidden because it contains spoiler information about the solution
Perfectly explained for everyone!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You did it so simple and nice, I had to create a variable in my case, but I like your approach!
var basically stands for variable; its value can change within the script, as such when hoisting, js will look for another value that me a variable to the same. const basically stands for "constant" as such, the value is fixed. For a short function as such, the value can be fixed!