discussions icon indicating copy to clipboard operation
discussions copied to clipboard

javascripting rounding numbers

Open hillaryforget opened this issue 2 years ago • 1 comments

rounding numbers challenge in terminal

let roundUp = 1.5 Math.round(1.5)

let rounded = roundUp console.log(roundUp)

This is what I got following the instruction but it is saying it's wrong when I go to verify.

hillaryforget avatar Jun 22 '22 15:06 hillaryforget

Hello @hillaryforget, in your code, you forgot to assign the funtion result Math.round() to a variable. for example:

let my-variable = Math.round(roundUp)

later you can print the rounded number with cosole.log(my-variable)

mzgdev avatar Sep 10 '22 02:09 mzgdev