function lenOfNum(num) {
num = Math.abs(num)
if(num < 10 && num >= 0){
return 1
}
let len = 0
while(num > 1){
num = num / 10
len++
}
return len
}
function lenOfNum(num) {
num = Math.abs(num)
if(num < 10 && num >= 0){
return 1
}
let len = 0
while(num > 1){
num = num / 10
len++
}
return len
}