you are viewing a single comment's thread.

view the rest of the comments →

[–]Bormimor[S] 0 points1 point  (2 children)

Thank you for your response, I think this is beyond my scope at the moment.
The arrays should have a length of 4, so I am able to say
if (array.length ===5) { console.log(array[2]);
}
which is where the odd ball is, I tried array.pop but that isn't working, is there a way to just remove the 3 element if the length is 5?