• Stars
    star
    1
  • Language
    JavaScript
  • Created over 4 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Create a game that shows an equation of the form X + Y + Z = P Here, X, Y, and Z should be random numbers, and P should be the proposed answer. The user should be able to answer whether it is true that the sum of X, Y, and Z equals the proposed answer P. The user gets a point for each question the user answers correctly. The score is displayed in this format [# of correct answers] / [# of questions answered] Every time the user answers a question, a new question that uses randomly generated numbers is displayed. Remember that a Component’s constructor is the first thing that runs when the object is created. The render method gets called automatically every time the state changes inside of the component and anytime the value of the component’s props changes. This exercise will help you practice what you’ve learned in the course so far, including the trickiest part of React - managing state.