Create a function that will return an integer number corresponding to the amount of digits in the given integer number
.
numberOfDigitsInNumber(1000) ➞ 4
numberOfDigitsInNumber(12) ➞ 2
numberOfDigitsInNumber(1305981031) ➞ 10
numberOfDigitsInNumber(0) ➞ 1
- Try to solve this challenge without using strings!