+ 3

How can I make that the number given for example 4.95 be 5 in a prompt ()?

JavaScript

17th May 2017, 7:50 AM
Iwan
Iwan - avatar
2 Answers
+ 14
Math.round( prompt("Enter your number") );
17th May 2017, 7:54 AM
Maz
Maz - avatar
+ 2
@maz please answer this too if u can https://www.sololearn.com/discuss/395235/?ref=app
17th May 2017, 8:00 AM
Iwan
Iwan - avatar