Created
May 25, 2020 21:43
-
-
Save iainfreestone/1d78a689fdb69bbdcb12d09f0f5dfb5e to your computer and use it in GitHub Desktop.
String Substitution
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
users.map(user => | |
console.log( | |
"User %s %s is %d years old.", | |
user.firstname, | |
user.lastname, | |
user.age | |
) | |
); | |
// User Joe Bloggs is 45 years old. | |
// User Jane Doe is 34 years old. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment