Outline

For the exercise for this section, complete the expression or determine what its output will be

// 1. !dog.name
const dog = {
  breed: 'Labradoodle'
}

// 2. What is the value of name?
let name = !!dog.name;
name = !dog.name

// 3. Provide a value for the ifStatement variable using the not operator and the name attribute so that you enter the if statement.
const ifStatement;
if (ifStatement) {
  dog.name = 'Max';
}

Fork this StackBlitz project to do the exercise.

 

I finished! On to the next chapter