0% found this document useful (0 votes)
4 views1 page

5.JavaScript+ +in Built+Number+Functions+ +Practice+Problems

Uploaded by

07ashief
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

5.JavaScript+ +in Built+Number+Functions+ +Practice+Problems

Uploaded by

07ashief
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Resources

JavaScript – In-built Number Functions


Practice Problems

Q. Answer the following questions. Also, explain why do you think that your answer is
correct.

1. console.log(toString(100))
2. console.log(parseInt('44'))
3. console.log(parseInt('22.222'))
4. console.log(parseInt('Banana'))
5. console.log(parseFloat(12))
6. console.log(parseFloat(13.3))
7. var num1 = 10; console.log(num1.toFixed(2))
8. var num1 = 15.456789; console.log(num1.toFixed())
9. var num1 = 15.456789; console.log(number.toFixed(2))
10. var num1 = 15.456789; console.log(num1.toFixed(3))

Codepen URL: https://codepen.io/qaifikhan/pen/daWYge

My Twitter Handle: @qaifikhan

All the Best!

EdYoda Digital University https://www.edyoda.com


Page | 1

You might also like