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.
🎉 Happy Coding!