Memory Game | Inkoop

Memory Game

Build a game in Javascript with following rules

  • Build a page with a
    element and a button with text "Generate"
  • When you click on the button, generate a random 6 digit nummber and display it in the
    element.
  • At the same moment, show a text below the button "Refreshing the page in 10 seconds".
  • Store the random number in localStorage of browser.
  • After 5 seconds, JS should refresh the page and show a text input field to enter the number and a submit button.
  • When submit button is clicked, match the number with randomly generated number and display how many digits matched.
  • Give option to Re-play the game.
  • Watch the below video for more details.

Important: Kindly follow the instructions

  • You can use any javascript plugin you are familiar with.

Working Video

Have a Project in mind?