length of int js code example
Example 1: javascript length of number
x.toString().length // x is a number
Example 2: check length of number javascript
var number = 773;
number.toString().length;
Example 3: javascript number length
var num = 1234
number.toString().length; // 4
Example 4: javascript integer length
var num = 1024,
str = num.toString(),
len = str.length;
console.log(len);