Question: Write the required JavaScript code so that when a user clicks on the Click me! button, the following is done: Prompt the user to enter
Write the required JavaScript code so that when a user clicks on the Click me! button, the following is done:
- Prompt the user to enter a number between 10 & 20.
- Pop up an alert message "wrong number" if the user enter number less than 10 or greater than 20.
- Print the odd numbers from 1 to the number entered by user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
