Day 22 of #100daysofjs

Exercise 1 - Guess the number

Write a javascript program to generate a random number and store it in a variable the program then takes an input from the user to tell them whether the guess was correct, greater or lesser than the original number.

100- (no of guesses) is the score of the user

the program is expected to the terminal once the number is guessed. The number should be between 1 - 100

Code