0
Which of the following will produce a value of 10 if x=9.8?
Some logical operator problem
1 Réponse
+ 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))