Question: . Write a JavaScript program where the program takes a random integer between 1 and 10, the user then prompted to input a guess number.

. Write a JavaScript program where the program takes a random integer between 1 and 10, the user then prompted to input a guess number. If the user input matches the guess number, the program will display "good work, otherwise, it will display "not matched". Hint: use alert() function to pop out text message. Use Prompt() for user input. E.g. var gnum = prompt('Guess the number between 1 and 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
