Hope you're ready for a JavaScript pop quiz! There's a catch: you have to build it!
- Create and connect an
index.jsfile toindex.html. - Create a
scorevariable to keep track of how many questions the user answers correctly. - Prompt the user to answer at least 3 multiple choice questions.
- Each question should have at least 2 choices.
- Validate the user's input each time.
- Update the
scoreif the user answers correctly.
- After the quiz, show the user a different message depending on their performance.
There should be distinct messages for at least these scenarios:
- The user answered 0 questions correctly.
- The user answered all questions correctly.
- The user answered some questions correctly.
Note
You can be creative with what the questions and answers actually are! We're more concerned with your ability to write conditionals.
Please submit the link to your public GitHub repository.