Question: write a program in javascript that prompts the user for their year of study. To be valid, year of study, must numeric (integer) and must

write a program in javascript that prompts the user for their year of study. To be valid, year of study, must numeric (integer) and must be within the range 1 - 3.

If your solution detects invalid input, your program must loop to allow the user to re-enter year of study, this process continues indefinitely, until valid input is detected.

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!