Advertisement
makispaiktis

Codecademy - 8th Exercise (Human Age as a Dog Age)

Sep 26th, 2019 (edited)
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let myAge = 20;
  2. let earlyYears = 2;
  3. earlyYears *= 10.5;
  4. let laterYears = myAge - 2;
  5. laterYears *= 4;
  6. console.log(`Early Years: ${earlyYears}`)
  7. console.log(`Later Years: ${laterYears}`)
  8. let myAgeInDogYears = earlyYears + laterYears;
  9. let myName = "Thomas".toLowerCase();
  10. console.log()
  11. console.log(`My name is ${myName}. I am ${myAge} years old in human years, which is ${myAgeInDogYears} years old in dog years.`)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement