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.
Once again, the task condition: "if true, you can half the swimming speed of the shark"
A simple example: a shark will swim 6 km at a speed of 6 km/h in 1 hour, at a speed of 3 km/h - in 2 hours...
This comment is hidden because it contains spoiler information about the solution
You code is still incorrect. You need to debug your solution. If you don't know where to start, you may find some helpful tips there: https://docs.codewars.com/training/troubleshooting/
Codewars does not work with input/output like other coding platforms. Your functions have to return the result, not print it.
Since your function returns nothing explicitly it returns
undefined
in JavaScript.