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.
With primitive values (e.g. numbers) it doesn't really matter, because the changes to parameters don't affect anything outside the function scope (they're copies). With reference types (such as arrays or objects) it's different.
I see someone say this so often. I also don't get it why?
why "Mutation of function paramateres" sounds so bad ?
I didn't understand either
Is that bad? Why?
(I'm new =/)
I think we need Math.floor(percent/100), ??
we can change passed by values: https://medium.com/nodesimplified/javascript-pass-by-value-and-pass-by-reference-in-javascript-fcf10305aa9c https://www.javascripttutorial.net/javascript-pass-by-value/ can't we ?
Should not mutate parameters.
Mutation of function paramateres =\
Why not a
for
loop? :D https://www.codewars.com/kumite/57cab2bbfa9fc5df340007d6?sel=5d6946c80725d3001fb10eb1I think this one is the most readable. Anyone else use a do-while?