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 think, for our specific function, where we are dealing with seconds and presumably expect non-negative numeric inputs, either parseInt or Math.floor should work fine.
In other cases it could be different:
console.log(Math.floor(-3.5)); // Output: -4
console.log(parseInt("-3.5")); // Output: -3