This code will check that entered contact number is valid or not which was entered by user using javascript.