var a = [1,4,5];
var e = a.length--;
Here e
variable will contain 5. But if I do:
var e = a.length-=1;
Here e
will contain 2 the number of elements array.
So the first is a language 'tip' to simulate a pop() array methods?
In the language syntax doing:
a--
or
a-=1
is semantically the same.