Question: 4. (5p) Write a JavaScript function to check whether a phone number is a valid one or not. If the phone number is valid, your

 4. (5p) Write a JavaScript function to check whether a phone

4. (5p) Write a JavaScript function to check whether a phone number is a valid one or not. If the phone number is valid, your function should return true, false otherwise. A valid phone number is the one that is formed from exactly 7 digits and starts with either '22' or '36

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!