Exercise 6. What if choice 1 is rock. Stuck in the MUD


#1


https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/1/2?curriculum_id=506324b3a7dffd00020bf661#

"Oops, try again. There was a problem with your syntax."


Replace this line with your code. 

See attached image

Please help, have been stuck for over 2hrs on this, expert help needed. Thank you!!


#2

Remember that there are no semi-colons in an if statement, only in the statements contained in the code blocks.

if (choice1 === choice2) {    // change the `;` to `{`.

#3

Still getting the same error message about unexpected end of input. I've adjusted the code per your comment. Not sure what I'm doing wrong now.Uploading...


#4


#5

Insert one more closing brace before line 22.


#6

Thank you mtf, that was it. I appreciate all your help. On to the next lesson.


#7

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