tl;dr – Today I learned that Array.push returns the new length of the array.
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.
1
console.log([].push(4));
Good to know.