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