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 love the way your code is organized. It is easy to read and understand
This comment is hidden because it contains spoiler information about the solution
This does not work correctly for negative numbers.
Standard Math object:
Math.floor(-1.1) === -2
This implementation:
Math.floor(-1.1) === -1
Great idea reusing functions
Hmm... almost the same...
I guess mine is slightly better since
%
works for bigger numbers...That 'number | 0' is very clever!
|0 is good.
Learned something today! Good job.
no worries :)
Your right.
Go to sleep...
he's restored the Math.floor and reimplemented its functionality so he can use it again :)
"Math object was "accidently" reset"
then you use Math.floor ...
Hey, People, you realy think it is clever?
Is there a benefit to having the elif as opposed to just continuing execution outside of the if? Would make for cleaner code since you'd never get into that elif unless you should be continuing execution, right?