Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created January 26, 2021 16:00
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/e7ab03a6503e039604d4c180d2d1460e to your computer and use it in GitHub Desktop.
Save codecademydev/e7ab03a6503e039604d4c180d2d1460e to your computer and use it in GitHub Desktop.
Codecademy export
let userName = 'Jane';
userName ? console.log(`Hello, ${userName}!`) : console.log('Hello, Anonymous!');
const userQuestion ='Will I be rich?';
if(userName ='true') {console.log(`Anonymous asked: ${userQuestion}`);}
else {console.log(`${userName} asked: ${userQuestion}`);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment