Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
String Substitution
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
You can’t perform that action at this time.