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
This comment is hidden because it contains spoiler information about the solution
Don't forget to specify the constructor when changing the prototype.
Anyway, best solution for me because left the fullname property out of the constructor ;)
NamedOne.prototype = {
constructor:NamedOne,
(...)
}
When doing:
var addTwo = add(2);
console.log(addTwo == 2) //true
console.log(addTwo(3) == 5) //true
console.log(addTwo(3)(5).valueOf()) //13
The last line should return 10 instead of 13
Try same( [[1,5], [2,7]] , [[0,6], [2,7]] ) and you will see it's not a valid solution.
This comment is hidden because it contains spoiler information about the solution