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 guess I'm wrong. I checked the MDN and they define Math.round to only round to the tenths place, too.
Correct me if I'm wrong, but shouldn't the number of significant digits be clarified for rounding? This kata seems to only consider the tenths place significant, but if additional places were significant, rounding would differ (ie 0.499 would round to 1 if the hundreths and/or thousandths were significant). I initiallly looped through the decimal digits to account for greater rounding accuracy, but was surprised to get this result "Math.round(2.49999) - Expected: 2, instead got: 3".
This comment is hidden because it contains spoiler information about the solution