Inside of a console.log, create a random number with Math.random, then multiply it by 100.
If you run the program few times, you’ll see random numbers in the console.
console.log(Math.floor(Math.random() * 100));
what did I wrong?
Inside of a console.log, create a random number with Math.random, then multiply it by 100.
If you run the program few times, you’ll see random numbers in the console.
console.log(Math.floor(Math.random() * 100));
what did I wrong?
can you please provide the exercise url? i don’t see in the instructions anywhere that the use of math.floor was required, maybe you should remove math.floor?
I’m stuck on the same exact problem and issue, any luck?
Any luck? I’m stuck on the same problem.
Did you ever find the correct solution? I’m having a similar problem on the same question. I entered:
console.log(Math.floor(Math.random() * 100));
the number generated is 15
Do I create a new console.log like this:
console.log(15 * 100);
Where do I insert this number? I keep getting a error message reading:
Did you multiple Math.random() by 100 inside a console.log statement?
I have been stumped for hours and you were the only one on the forum with the same issue. Any help or advice would be greatly appreciated, thank you in advance for your time.
Here is the solution, seems I was doing the steps out of order.
Thank you so much for your response i was going mad