Nullish with an Object - basic

PHOTO EMBED

Sat Oct 15 2022 05:11:36 GMT+0000 (Coordinated Universal Time)

Saved by @davidmchale #javascript #nullish #object

const person = {
 name: null,
    age: null,
    message: null,
}


<h3>{person?.name ?? 'default Name'}</h3>
<h3>{person?.age ?? 'default age'}</h3>
<h4>{person?.message ?? 'default message'}</h4>
content_copyCOPY