Can any one explain this how to approach this one

We want to create a JS application to practice arithmetic. Here is the problem statement:

  • On a web page, there will be two quizzes running simultaneously.
  • When the user loads that web page, the web page should be divided into two quiz sections.
  • Each quiz section will show a “Start Quiz” button on clicking that button, the quiz will start and asks 20 mathematical questions
  • Not all 20 questions will be asked at once, the application will show questions one by one.
  • The quiz should generate two random numbers less than 10 and then pick an operator randomly (add, subtract, divide, multiply).
  • User should be able to enter his answer and click the next button (until all questions are not attempted).
  • The application should evaluate the answer when the user moves to the next screen and show the score at the bottom.
  • User should not be allowed to go back and edit answers.
  • For each question, a timer of 20 seconds will be running. The user should either submit his answer within 20 seconds or the application automatically move the user to the next question when the timer is over.
  • Once all questions are attempted, show the user the final score and all questions asked in the quiz. Highlight questions (in red) that the user did not answer or answer were incorrect. Show correct answers to the questions.
  • Cumulative Scorecard: Somewhere, on the top of the page. There should be a cumulative scoreboard that should display a cumulative score of all quizzes running on the page.

Why two simultaneously? Surely someone doing the quiz can only do one at a time?

1 Like

Firstly, welcome to the forums.

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too. Some of what you are asking is pretty trivial in the Free Code Camp context, so you might find that if you’re not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess I’d say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at

With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).

It is pretty typical on here for people to share a codepen / / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.

Please provide some example of what you’ve tried and I’m sure you’ll get more help.

Happy coding :slight_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.