Created
February 25, 2020 00:07
-
-
Save janice-wong/3d87328bb805c94aa049df22596a28bc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function basicTeenager(age) { | |
| if (age === 13 || age === 14) { | |
| return "You are a teenager!"; | |
| } | |
| } | |
| console.log(basicTeenager(15)); | |
| console.log(basicTeenager(15)); | |
| // print string interpolated results | |
| console.log(`age ${15}: ${basicTeenager(15)}`); | |
| console.log(`age ${13}: ${basicTeenager(13)}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment