discussions
discussions copied to clipboard
javascripting rounding numbers
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.
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)