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.
Good one
Good one with the prototype. but if the object will be created with the class, the prototype is created automatically.
Because the objects are already given and you're overwriting them with your code. Just access the objects to get their values. Remove those first two lines from your code, then you'll have to fix something else, but that's unrelated to this.
Hello, my code works in VS code and in Browser.
But the question is there are only three values provided in each object and because of that the codewars returns error for other names that are not provided in the example.
Good one :D :D
It's called a spread operator, you can use it to define "the rest" of arguments, like (a, b, ...rest) and that'll be an array of the additional arguments. You can call this as myFunc(a, b, c, d) and the rest argument will contain [c, d]. I hope this makes sense. :)
Could you explain what is doing ...names?