Guess the Number game in JavaScript

Now we are implementing the guess the number game. In this game, the computer proposes a number from 1 to 100. In the input on the screen, the player enters a number from 1 to 100, trying to guess what the computer proposed.

If the player entered a number less than the guessed one, the computer should write 'enter a larger number', and if the player entered more than the guessed number, then, accordingly, the computer should write 'enter a smaller number'.

Implement the game described above.

enru