A simple JavaScript game “Number Guesser”

I’m going to provide you with a simple JavaScript game called “Number Guesser”. In this game, the player tries to guess a random number between 1 and 100. The script will provide hints (too high or too low) until the player guesses the correct number. The game can be played in the browser console.