Why its showing error : check is not defined in my quiz code in the end content of JavaScript Line57 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why its showing error : check is not defined in my quiz code in the end content of JavaScript Line57

Is something is wrong with ths code? I was just checking that when option will be selected, it shows correct or wrong in the console output https://code.sololearn.com/W7Jm487Gfc1U/?ref=app

16th May 2020, 12:35 PM
Jagmeet Singh
Jagmeet Singh - avatar
3 Answers
+ 3
Jagmeet Singh You need to write function outside the onload https://code.sololearn.com/Wk7HIdsZknQv/?ref=app
16th May 2020, 12:48 PM
A͢J
A͢J - avatar
+ 1
Thank you so much brother
16th May 2020, 12:52 PM
Jagmeet Singh
Jagmeet Singh - avatar
0
AJ What to keep inside and outside of onload? How to understand that. Again while selecting one option and disabling other options i defined function and getting error. https://code.sololearn.com/W7Jm487Gfc1U/?ref=app
16th May 2020, 3:07 PM
Jagmeet Singh
Jagmeet Singh - avatar