This forum is now read-only. Please use our new forums! Go to forums
Why does 2/9 not work??
var userChoice = prompt(“Do you choose rock, paper or scissors?”);
You see, I copied down what they wanted me to do. Character by Character. It just wouldn’t work. It keeps saying an error “Oops, try again. Did you set userChoice equal to the result of prompting the user?”
Can somebody help me? [email protected]
Answer 54f98eb5d3292fea470012e9
Answer 54fa332d86f552dcc4000705
I did that and it didn’t work. Still, I copied word by word.
5 comments
Okaaaay… And refreshing did not help? As said I can pass with the code mentioned above, so its not about the syntax of the statement or anything like this. Have you checked your browser settings javaScript enabled and stuff like this?
What are you talking about?
You tried this code on 2/9: var userChoice = prompt(“Do you choose rock, paper or scissors?”); Right? And it did not work? You did refresh the page and tried again and it still did not work? Yes? Well I copy and pasted that code entered it in 2/9 and I was able to pass this exercise. So I don’t see any obvious errors and the exercise didn’t tell me any errors, so I assume the code is correct and now am asking if you’re system has any problems.
I solved the problem because right now I am on Internet Explorer 11 on metro. All I needed is on load the webpage on the desktop Internet Explorer.
Thanks!
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
6 comments
I got the same problem. Tryed to go thru th different brovsers, refresh page, hardly refresh ( Ctrl + Shift + R ); But nothing works
could you post your code?
Sorry, but no, because I`ve cahge it before i saw your message *( Now everything works fine, after some changes… It seems like validator works different ways on different pages.
So?
Thanks, Alex Sharp. I switched between browsers, and it worked.
Jonson Tran, another tip for you: you can use desktop code editor to debug your code. E.g. Brackets, or Sublime. This editors can check your code for any mistakes with syntax.