A hole in the train is a missing wagon: make one with Array(n), Array.from, fill or a literal, then see who skips it and who reads it, and as what: map…
The key idea
A hole is not undefined, and map and forEach pass it over
Try it in this playground
map on a train with holes Run map on Array(3) to the end: the callback runs 0 times, the result stays holes.
Fill the holes Use Array.from(arr) on a train with holes, or map on Array.from({ length: n }).
A hole against undefined With i in arr, get false for a hole and true for a place holding undefined.
JSON writes null Run JSON.stringify on a train with holes: its holes become null.