jhow to check the length of an integer in js code example
Example 1: check length of number javascript
var number = 773;
number.toString().length;
Example 2: javascript integer length
var num = 1024,
str = num.toString(),
len = str.length;
console.log(len);