Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 567 Bytes

play-game.md

File metadata and controls

13 lines (9 loc) · 567 Bytes

Play Number Guessing Game

User can open index.html file in any browser. Alert asks user to pick a number between 1 to 5. If the answer is right congratulation message pops up. Otherwise it indicates user guessed low or high.

This is a simple program uses following features.

  • alert function to give message to end user
  • Math.random function to generate a random answer for each play.
  • prompt function to take the user input.
  • for loop & if else condition have been used. That is all.
Enjoy the game

🎉 Happy Coding! :octocat: