Skip to content
Advertisement

How do I build a text 3 question input quiz that redirects on correct answer using JavaScript?

StackOverflow community. I am hoping to help out a friend by fixing the script below to enable it to run.

I can see a few errors myself but it’s my first time writing more than echo “Hello World!”;.

I would like 3 questions and if all correct, a congradulate box apears “you got all 3 correct, move on” then a redirect to another page.

If incorrect, “Incorrect, try again!”

I also tried to add upper or lower case for the answers but failed.

Can anyone help me tidy it up and enable it to function or point me in the right direction.

Many thanks in advance.

JavaScript

Advertisement

Answer

I think this should solve your problem. ( Please compare your submission with this answer so you can see what you where missing

JavaScript
Advertisement