01 / 04
When you go and fetch from nowhere
What happens if you write list[5] on an array with only two items?
It feels as though it should stop with an error, but JavaScript does not stop. It hands you back a special value called undefined.
const list = ["a", "b"];console.log(list[0]);console.log(list[5]);Result
a undefined