Help Please! - JavaScript


#1

Hi, I’m N3rdW. I’m working on JavaScript for beginners, and haven’t gone very far in depth. I’m stuck on Math.random level, and the help, hint, and instructions didn’t help. No matter what variations I try, after copying the hint, and exactly what the directions say, it always comes up with a syntax error. Any help would be greatly appreciated. Here is the link - https://www.codecademy.com/courses/learn-javascript-introduction/lessons/introduction-to-javascript/exercises/libraries?action=resume_content_item&course_redirect=introduction-to-javascript
Thanks,
N3rdW.


#2

Can you please post your code so we can check?


#3

whats the problem your having can you be more specific


#4

Console.log(Math.random()) * 100, and run every variation I can think of. It’s supposed to generate a random number between 1 and 100.
Thanks again,
N3rdW.


#5

Then that’s your problem right there. Go find out what it’s supposed to be. No guessing. You might for example google for “hello world javascript” and then you might try printing a number and then multiply with something and then change one of them to Math.random() – by changing one thing at a time you can tell which part you went wrong with

Console.log(Math.random()) * 100

That is syntactically valid by the way. You’ll probably get an error message saying what is wrong with that


#6

Thank you, I was making a capitalization error. Thanks!


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.