Which of the following will produce a value of 10 if x=9.8? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which of the following will produce a value of 10 if x=9.8?

Some logical operator problem

21st Nov 2021, 4:09 PM
Samuele Mondello
1 Answer
+ 1
Read about Math.ceil() function always roundup values like ex: 9.8 to 10 Or round() function also works here edit: console.log(Math.ceil(9.8), Math.round(9.8))
21st Nov 2021, 4:25 PM
Jayakrishna 🇮🇳