Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created March 26, 2020 19:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/4c4374e3025b220c39cf557cfb7f19a2 to your computer and use it in GitHub Desktop.
Save codecademydev/4c4374e3025b220c39cf557cfb7f19a2 to your computer and use it in GitHub Desktop.
Codecademy export
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!");
@Aza-di
Copy link

Aza-di commented Oct 8, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment