Question: Q2. Write a JavaScript program to check a student number. Add a text control for input, a div for the output and a button. If

 Q2. Write a JavaScript program to check a student number. Add

Q2. Write a JavaScript program to check a student number. Add a text control for input, a div for the output and a button. If input fits than "Valid", "invalid" otherwise must be displayed via the div. A total of 8 digits; First two digits should be 20,19,18 or 17. Second two digits must be 25,35,39 or 32. Last 4 digits should be between 0000 and 9999. St. No: 59269 Test Valid

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!