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



"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!!


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 `{`.


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...



Insert one more closing brace before line 22.


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


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