get length of a number code example
Example 1: javascript length of number
x.toString().length // x is a number
Example 2: javascript number length
var num = 1234
number.toString().length; // 4
x.toString().length // x is a number
var num = 1234
number.toString().length; // 4