Skip to content

Instantly share code, notes, and snippets.

@dandean
Created March 30, 2014 07:38
Show Gist options
  • Save dandean/9869085 to your computer and use it in GitHub Desktop.
Save dandean/9869085 to your computer and use it in GitHub Desktop.
var x = 5, y = 10;
console.log(`${x} + ${y} = ${ x + y}`);
// 5 + 10 = 15
@OscarGodson
Copy link

For comparison:

console.log(x + ' + ' + y + ' = ' + (x + y));

@dandean
Copy link
Author

dandean commented Mar 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment