get length of number with out converting to string.
Method 1:
var x = 1234567;
x.toString().length;
Method 2:
const num = 123456
`${num}`.length // 6
var x = 1234567;
x.toString().length;
const num = 123456
`${num}`.length // 6
<style type="text/css">
table {
table-layout: fixed;
word-wrap: break-word;
}
table th, table td {
overflow: hidden;
}
</style>

["2","4"["2","4","7"],"7"]