Longitud del número
Crea una función que recibe un entero no negativo num y devuelve la cantidad de dígitos que tiene. Cuenta 0 como un dígito.
Ejemplos
numberLength(10) ➞ 2
numberLength(5000) ➞ 4
numberLength(0) ➞ 1Notas
N/A
Crea una función que recibe un entero no negativo num y devuelve la cantidad de dígitos que tiene. Cuenta 0 como un dígito.
numberLength(10) ➞ 2
numberLength(5000) ➞ 4
numberLength(0) ➞ 1N/A