Outline

Below is a possible solution to the exercise for this section:

// 1. 5 ?? 100
console.log( 5 ?? 100 );
// 2. 0 ?? null
console.log( 0 ?? null);
// 3. null ?? 5
console.log( null ?? 5 ) ;
// 4. null ?? undefined
console.log( null ?? undefined); 

If you have any more questions about the nullish coalescing operator, you can read about it here.

 

I finished! On to the next chapter