Exercise: Better Precision
Exercise prerequisites:
- JavaScript Number Methods
- JavaScript String Methods
- All previous chapters
Objective
Create a function that extends the number method toPrecision()
to return a stringified number without scientific notation when the exponent is less than 5.
Spread the word
Think that the content was awesome? Share it with your friends!
Join the community
Can't understand something related to the content? Get help from the community.