-
-
Save codecademydev/4c4374e3025b220c39cf557cfb7f19a2 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
let favoritePhrase = 'Love That!';
favoritePhrase === 'Love That!'
? console.log('I love that!') : console.log("I don't love that!"); // What's wrong? Where is the error? Who can help me?