+ 8

Would someone please help me debug this code?

I keep on getting this error: Reference Error: https://code.sololearn.com/WHiShTdTj0RX/?ref=app

5th Oct 2018, 4:50 PM
Elijah D
Elijah D - avatar
6 Answers
+ 8
Thanks ODLNT. That stopped the errors. But now the button on line 49 won't work.
5th Oct 2018, 5:12 PM
Elijah D
Elijah D - avatar
+ 8
Thanks ODLNT. I added more div tags around the <input>s. There is only one problem... I guess my logic still isn't right.
5th Oct 2018, 5:53 PM
Elijah D
Elijah D - avatar
+ 5
I got it to work. Thanks ODLNT and asa22!👍👍👍😃😃
5th Oct 2018, 10:27 PM
Elijah D
Elijah D - avatar
+ 5
ODLNT, On line 3 of the JS code you sent me, there was a comment. Could you explain that in more detail?
5th Oct 2018, 11:45 PM
Elijah D
Elijah D - avatar
+ 5
Oh I get it. Thank you ODLNT !!!!!!!!
6th Oct 2018, 12:33 PM
Elijah D
Elijah D - avatar
+ 1
Hi Elijah, You only need only one form tag for this page, not every input field look for spelling randomNum is not the same as RandomNum, the input value is relevant, therefore it need the id and not the div tag around it, switch is not possible for greater or less comparisons. I made some changes, https://code.sololearn.com/WJwu0nBdOmmM Your code is fine, is it not so easy, keep it up 👍
5th Oct 2018, 8:22 PM
asa22