What is the output?
const list = [1 + 2, 1 * 2, 1 / 2];
console.log(list);You missed this one before
Array elements can hold any value. Numbers, strings, objects, other arrays, null, boolean values, undefined, and other expressions such as dates, functions, and calculations.
The element will be equal to the returned value. 1 + 2 returns 3, 1 * 2 returns 2, and 1 / 2 returns 0.5.
Question 80 · see the original (opens in a new tab)
or press Enter