getting some error while creating a quiz..and I can't understand it.please help | SoloLearn: Learn to code for FREE!

0

getting some error while creating a quiz..and I can't understand it.please help

Hello guys it's my first javascript project trying to create a quiz. But getting some error ..and I can't understand why are they coming please help ..I m very excited for it.. https://code.sololearn.com/WqIE9mKl859H/?ref=app

5/11/2020 8:02:35 AM

Shubham Thakur

2 Answers

New Answer

+1

you did 2 basic mistakes. i also commented your mistakes in code (JS section) 1) line 13 and 14, in query selector you have to specify which type of query you are writing, like for id you have to write hash(#) 2) your result function should be outside of your onload event because if it is inside then it won't be accessible because of function scope. https://code.sololearn.com/WQkk2fwvnGHH/?ref=app

0

Thankyou so much mate ...you guys are so helpful 😊