What's the output?
let num = 1;
const list = ['馃コ', '馃', '馃グ', '馃お'];
console.log(list[(num += 1)]);You missed this one before
With the += operator, we're incrementing the value of num by 1. num had the initial value 1, so 1 + 1 is 2. The item on the second index in the list array is 馃グ, console.log(list[2]) prints 馃グ.
Question 118 路 see the original (opens in a new tab)
or press Enter