nodeschool / discussions

:school::speech_balloon: need help with nodeschool? or just wanna ask a question? open an issue on this repo!
489 stars 107 forks source link

javascripting rounding numbers #2621

Open hillaryforget opened 2 years ago

hillaryforget commented 2 years ago

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.

mzgdev commented 2 years ago

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)