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

. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!