Phone Number Validator | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Phone Number Validator

You are given a number input, and need to check if it is a valid phone number. A valid phone number has exactly 8 digits and starts with 1, 8 or 9. Output "Valid" if the number is valid and "Invalid", if it is not.

18th Jul 2022, 6:21 AM
Hisoncom
Hisoncom - avatar
2 Respuestas
+ 4
Please link your attempt with question first and tag a programming language.
18th Jul 2022, 6:42 AM
JaScript
JaScript - avatar
18th Jul 2022, 7:10 AM
Aman Kumar Sinha
Aman Kumar Sinha - avatar