Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created November 29, 2019 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/f94f0240f82cbfa194a521bbccc71b78 to your computer and use it in GitHub Desktop.
Save codecademydev/f94f0240f82cbfa194a521bbccc71b78 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!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment