What does this program print?

from Array methods
Node 24 intermediate 2 min

What does this program print?

JavaScript
const values = [2, , 4];
const seen = [];
const doubled = values.map((value, index) => {
  seen.push(index);
  return value * 2;
});

console.log(seen.join(','));
console.log(doubled.length, 1 in doubled);
Open in playground
Report an error