Can you still?

What's the output?

const numbers = [1, 2, 3];
numbers[10] = 11;
console.log(numbers);

You missed this one before

When you set a value to an element in an array that exceeds the length of the array, JavaScript creates something called "empty slots". These actually have the value of undefined, but you will see something like:

[1, 2, 3, empty x 7, 11]

depending on where you run it (it's different for every browser, node, etc.)

Question 37 · see the original (opens in a new tab)