The following code produces `5`, instead of `1` as I would have expected, if the array was really sparse:
const a = ;
a = 1;
The `length` method returns the highest index in the array plus 1. It doesn't actually care how many items there are.