Syntax error?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Syntax error??

https://code.sololearn.com/WUkgTYvt19iE/?ref=app I’m creating this personality test, but for some reason it creates a syntax error when I try to run it. Does anybody know why it’s not working?

3rd Aug 2020, 10:21 AM
GiuMar
GiuMar - avatar
3 Réponses
+ 1
Assigning value to value is a statement And you should use semicolon between two statement. If you are getting error like can't set ..... Of null just put your whole js code in script tag above </body> Or use this in js page window.onload=function(){ Your js code here }
3rd Aug 2020, 10:44 AM
Divya Mohan
Divya Mohan - avatar
+ 2
You wrote document instead of const in line 14
3rd Aug 2020, 10:28 AM
Jnn
Jnn - avatar
0
Jnn thank you :)
3rd Aug 2020, 10:33 AM
GiuMar
GiuMar - avatar