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.
Template literals FTW
You are very correct!
The current implmentation did not account for when number is equal 0
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?
I like it
I would rename p as "total" and n as "current" or something like that for readability.
Try to use a whitespace, it's easy!
guy, you are Einstein
This comment is hidden because it contains spoiler information about the solution
indeed, if you call makeNegative(0) it will be -0 :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Very very nice solution !
Why is this the best practice?
This comment is hidden because it contains spoiler information about the solution
Loading more items...