genius
very cool bro
JS: Node v12 should be used along with its appropiate assertion tools (Mocha + Chai). Refer to this and this
Looks like the suggested has been taken, closing.
It casts float number to integer, so you get the whole result.
This comment is hidden because it contains spoiler information about the solution
Your JS engine is broken. It doesn't seem to be following operator precedence. |0 would be flooring that 18.04 to 18.
|0
18.04
18
Or... the more likely explanation is that you did not copy the entire solution when you went to test it...
Which bit is complicated?
Why complicate things even where you shouldn't?How come people voted this as a best practice
Oh right, I didn't know :P.
Yes it does
EDIT: No it doesn't :P
Doesnt work for the year 248993559122 :p
Great kata!
Now it's Approved. ;-)
Loading collection data...
genius
very cool bro
JS: Node v12 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
Looks like the suggested has been taken, closing.
It casts float number to integer, so you get the whole result.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Your JS engine is broken. It doesn't seem to be following operator precedence.
|0
would be flooring that18.04
to18
.Or... the more likely explanation is that you did not copy the entire solution when you went to test it...
Which bit is complicated?
Why complicate things even where you shouldn't?How come people voted this as a best practice
Oh right, I didn't know :P.
Yes it does
EDIT: No it doesn't :P
Doesnt work for the year 248993559122 :p
Great kata!
Now it's Approved. ;-)
Loading more items...