Question: Write the required JavaScript code so that when a user click on the Click me! button, the following is done: a. Prompt the user to

 Write the required JavaScript code so that when a user click

Write the required JavaScript code so that when a user click on the "Click me!" button, the following is done: a. Prompt the user to enter a number between 10 & 20. b. Pop up an alert message "wrong number" if the user enter number less than 10 or greater than 20. c Print the odd numbers from 1 to the number entered by user.

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!