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
Get step-by-step solutions from verified subject matter experts
