Rock paper scissors | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Rock paper scissors

Wheres the syntax error in the code? It wont work and i think its something to do with the continue variable but i am not sure. If you could help me and get it so theres no errors that would be nice https://code.sololearn.com/WRHwxFPFllOh/?ref=app

30th Mar 2022, 12:57 AM
Junior
Junior - avatar
6 Respuestas
+ 3
Move line 2 to line 9.
30th Mar 2022, 1:37 AM
Simon Sauter
Simon Sauter - avatar
+ 2
"continue" is a keyword. Don't use it as a variable name.
30th Mar 2022, 1:29 AM
Simon Sauter
Simon Sauter - avatar
+ 2
The closing brace in line 17 should come after line 18.
30th Mar 2022, 1:32 AM
Simon Sauter
Simon Sauter - avatar
+ 2
Lol okay thanks for the help
30th Mar 2022, 1:38 AM
Junior
Junior - avatar
+ 1
Okay, so i changed it but it still says syntax error
30th Mar 2022, 1:30 AM
Junior
Junior - avatar
+ 1
So now it says: ReferenceError: Cannot access uninitialized variable. at Line: 10
30th Mar 2022, 1:33 AM
Junior
Junior - avatar