Skip to content

Instantly share code, notes, and snippets.

@oliversd
Created January 6, 2019 18:01
Show Gist options
  • Save oliversd/061cb21ec3e91facd84f8956ee082c02 to your computer and use it in GitHub Desktop.
Save oliversd/061cb21ec3e91facd84f8956ee082c02 to your computer and use it in GitHub Desktop.
Template literals demo
let a = 5;
let b = 10;
console.log(`The sum of a and b is ${a+b} and the multiplication is ${a*b}`); 
// The sum of a and b is 15 and the multiplication is 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment