I did it by accident ...
var numbers = [1, 2, 3, 4]; numbers.push[5];
Why was there no error message?
push needs brackets, not square brackets. It was just a typo. I did not pay enough attention to what I was doing ... but why was there no error message?
As far as I can tell, the array of numbers has not been modified in any way. It's just ... nothing.
Vince source share