I am trying to spread out a string into an array in JavaScript; the problem is that after the number grows long enough, around 19 characters or more, the last few elements get replaced with 0. Pictures contain the same code as written below.
let workingNumber = number.toString().split('') // input 1234234234234234678, output ['1', '2', '3', '4', '2', '3', '4', '2', '3', '4', '2', '3', '4', '2', '3', '4', '6', '0', '0']
I have attempted to use .toString().split('') as well as Array.from(string) methods, both produce the same issue. Any idea what causes it and how it may be solved is welcome.