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 doesn't affect the variable outside the function. Primitive values are passed by copy.
Good but this overwrites the original principal. Better save it initially to a temp variable.
A true software engineer.
100 actually
How else would you calculate a percentage?
This is the type of solution that requires you to know math. How the hell am I suppose to know 1000 * 0.05 would give me 5% of 1000? Yeah, only when I know math.
if the tax is 12% for example (t = 0.12), then what remains is 88% of your earnings. 1-t = 0.88. This is the number by which you should multiply your earnings.
what does (1 - tax) mean in this solution ?
im confused
how does it work ?
1 is used in many solutions. what does it express ? explain to me as if I were a child please
This makes so much sense now. Thank you!
Those are local variables. Mutating them will not have an outside effect. ( Because they are primitive values. You would be right if they were objects. )
The solution being broken would not be the biggest problem in either of those cases.
Mutating the arguments is not Best Practises. So better to have an additional variable.
This solution is broken. It will hang forever, if the interrest rate is <=0 or the tax rate is =>1
I don't know how to use console.log. Could you explain or show it?
Loading more items...