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.
You give basically the entire algorithm to the user in the question initialization
The description is extremely vague and it isn't immediately obvious what the function's output should be
nah this is more like a 7
This comment is hidden because it contains spoiler information about the solution
Can variables be redefined from mutable to immutable and back? example:
lang.const.x(10);
lang.x // 10
lang.const.x(20);
lang.x // 10
lang.let.x(15);
lang.x // 15 or should it still be 10? and vice versa from let to const
im aware of how the javascript language works, but with regards to this language we're creating in the kata, it isn't clear how this should behave
i enjoyed the finger workout i got from scrolling through this answer
only thing that would make this better is nested ternaries