Ask coding questions

← Back to all posts
Check JS
WilliamXing

In the repl, the javascript in script.js is made to check the quiz. Why doesn't it work?

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
WilliamXing
Comments
hotnewtop
ch1ck3n

ya need to add .value for it to get the value of an input

ch1ck3n

@ch1ck3n
also the values for every one of them is going to be blank so you reset the values when you click the button

WilliamXing

But .value was already added in the if statements @ch1ck3n

ch1ck3n

@WilliamXing oh but once you set the variables it doesn't change unless you change it again

Coder100

You redirected the user to a different website, so any changes were reverted.