What is the difference between ?? and || in JS
const a = {}
const b = a.name ?? 'varun 1'
console.log(b)
const d = a.name || 'varun 2'
console.log(d)
In the above code they both work the same. I know || is OR i.e if the first statement is false then set the value for the next one. Is it same for ???