What do these two console calls print?

from JSON
Node 24 intermediate 2 min

What do these two console calls print?

JavaScript
const values = JSON.parse('[1,2,3]', (key, value) => {
  if (typeof value === 'number' && value % 2 === 0) {
    return undefined;
  }
  return value;
});

console.log(values.length, 1 in values);
console.log(JSON.stringify(values));
Open in playground
Report an error