Replace this line with your code.
You need to:
- console.log out
console.log(Math.random()*100); //this will console log Math.random()*100
- console.log out the value that you will get using
Math.floor() is just taking a decimal number that we got from
Math.random()*100and logs it out as a round number without any decimal places.
console.log(Math.floor(Math.random()*100)); //this will output the round number // without decimal places that we get from using Math.floor() on Math.random()*100
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.