const a = 1; const b = 2; const { c = a } = {}; const [ d = b ] = []; console.log(c, d);