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.
Actually it's what happens when a software engineer does his everyday job.
This comment is hidden because it contains spoiler information about the solution
Try when it's a whole number.
ceil(1) - 1
is notfloor(1)
.This comment is hidden because it contains spoiler information about the solution
I disagree that this solution is a good practice.
Why return the error message? Why not throw? Or do the concatenation anyway (JavaScript will cast both arguments to string at the return statement), but display a
console.warn
?Product always means multiplication. [Product on Wiki](https://en.wikipedia.org/wiki/Product_(mathematics).
This comment is hidden because it contains spoiler information about the solution