I don’t understand why the first two ternary expressions are different from the third. I was able to do the first two on my own, but I had trouble with the third. I had to ask them to give me the solution to the third. They use the equal to symbol in the last, but not in the first two equations.
let isLocked = false;
isLocked ? console.log(‘You will need a key to open the door.’) : console.log(‘You will not need a key to open the door.’);
let isCorrect = true;
isCorrect ? console.log(‘Correct!’) : console.log(‘Incorrect!’);
let favoritePhrase = ‘Love That!’;
favoritePhrase === ‘Love That!’ ? console.log(‘I love that!’) : console.log(“I don’t love that!”);