What does this program print?

from Destructuring assignment
Node 24 beginner 2 min

What does this program print?

JavaScript
const {
  missing = 'fallback',
  empty = 'fallback',
  count = 7,
  note = 'fallback',
} = { empty: '', count: 0, note: null };

console.log(JSON.stringify([missing, empty, count, note]));
Open in playground
Report an error