Question: Write the programs in JavaScript. Each in a separate external JS file along with an HTML driver file. exercise 3 . js Generate a random

Write the programs in JavaScript. Each in a separate external JS file along with an HTML driver file.
exercise3.js
Generate a random number from 1 to 10 and ask the user to guess it. If the user guesses it right then display an alert box that they guessed correctly and won a prize, else give an alert box that they guessed wrong and ask them if they want to retry or not. If they retry it repeats and if not it stops.

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 Programming Questions!