console.group('Lazy Setter with Nullish Coalescing Operator'); const nameThisCatPlease = new Cat('Pepo'); console.assert(nameThisCatPlease.name === 'Pepo'); nameThisCatPlease.name ?? ( nameThisCatPlease.name = 'Cleo') console.assert(nameThisCatPlease.name === 'Pepo'); nameThisCatPlease.name = undefined; nameThisCatPlease.name ?? ( nameThisCatPlease.name = 'Cleo') console.assert(nameThisCatPlease.name === 'Cleo'); console.groupEnd(); /* Console: Lazy Setter with Nullish Coalescing Operator get called Pepo get called Pepo get called Pepo set called undefined get called undefined set called Cleo get called Cleo */