Outline

Here's one possible solution to the exercise:

// 1. '0' || null
console.log('0' || null);
console.log(0 || null);

// 2. What is the value of name?
const name = '' || null || 3 || 'Jason';
console.log(name);

// 3. Provide values for val1 and val2 so that you enter the if statement.
const val1;
const val2 = 'hello';
if (val1 || val2) {
  console.log('You made it into the if statement')
}

Fork this StackBlitz project to see the answer key from this video.

 

I finished! On to the next chapter