Which of the following will produce a value of 10 if x=9.8? | Sololearn: Learn to code for FREE!

0

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

Some logical operator problem

11/21/2021 4:09:09 PM

Samuele Mondello

1 Answer

New 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))