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!

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

5/16/2020 12:35:46 PM

Jagmeet Singh

3 Answers

New Answer

+3

Jagmeet Singh You need to write function outside the onload https://code.sololearn.com/Wk7HIdsZknQv/?ref=app

+1

Thank you so much brother

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