I never thought about what this might return nor that it even should return something. Today I learned that it is the new length of the array. So the code below return 1
.
console.log([].push(4));
Good to know.
-->
I never thought about what this might return nor that it even should return something. Today I learned that it is the new length of the array. So the code below return 1
.
console.log([].push(4));
Good to know.