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.
When invoking string interpolation through
${var.function()}
Aren't we creating a new object, therefore, not mutating the original var? The declared string should be immutable in JS...This comment is hidden because it contains spoiler information about the solution
It does not; the original value is a string, which is immutable in JS (and most languages).
what is this empty array for ?
it is very clever. But is it not a bad practice to mutate the original value?