Problems with indexing array
Hi everyone,
my calculation looks like the following: (simplified)
const inputString = "0 1 2 3 4 5 6";
const itemsArray = inputString.split(' ');
const num= itemsArray[1];
(num);
this works perfectly up to and including index [3]. However, index[4] and higher results in
Can anyone explain to me why that is, and how I can overcome this problem?
Thanks,
Remo
Please sign in to leave a comment.
Comments
3 comments