const arr = [0123, 1456];
console.log(arr);
The result is [ 83, 1456 ]
, but I think it should be [0123, 1456]
.
The first element is wrong. I don't know why.
const arr = [0123, 1456];
console.log(arr);
The result is [ 83, 1456 ]
, but I think it should be [0123, 1456]
.
The first element is wrong. I don't know why.
Numbers starting with zero are octal integers. You might want to use 123
as your first member of the array.