//This is correct but...
a = 123456
a.toString().length // x is a number
console.log(a.toString().length) //6
//Remeber that if the number begins with a Zero, that will not be counted.
// So 0123456073 will give you 9 instead of 10.
// I felt this is nice to know as I struggled with it a little