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.
I faced the same issue and ended up using an array. Can you help me understand the rest parameter of a function?
I would have to substitute (r, g, b) by (...values) at the function parameters?
i like it picasso
You could have used the rest parameter in your function, declare a [r,g,b] array was unnecessary
@KoneVtwo when this solution was published, ES6 might not have been released yet.
Genuinely impressed. The only question I have is : why didn`t you use the arrow function?
Hah, good one with the '0' on the return. I padded the number with 0's instead, didn't think about that one!