-
-
Save codecademydev/b88fbd96f91e3d04ddff5bcc3a6082d0 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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