Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created February 18, 2021 03:34
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/b88fbd96f91e3d04ddff5bcc3a6082d0 to your computer and use it in GitHub Desktop.
Save codecademydev/b88fbd96f91e3d04ddff5bcc3a6082d0 to your computer and use it in GitHub Desktop.
Codecademy export
// My age
const myAge = 69;
// Early years
let earlyYears = 2;
earlyYears *= 10.5;
let laterYears = myAge - 2;
// Multiply by 4
laterYears *= 4;
console.log(earlyYears);
console.log(laterYears);
// My age in dog years
let myAgeInDogYears = earlyYears + laterYears;
// My name in lowercase
const myName = 'Peter'.toLowerCase();
// Log the information
console.log(`My name is ${myName}. I am ${myAge} years old in human years which is ${myAgeInDogYears} years old in dog years.`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment