Skip to content

Instantly share code, notes, and snippets.

@paigen11
Last active September 14, 2019 23:42
Show Gist options
  • Save paigen11/2a82746053155f5dfd13b443628d3660 to your computer and use it in GitHub Desktop.
Save paigen11/2a82746053155f5dfd13b443628d3660 to your computer and use it in GitHub Desktop.
Multi-line string examples using traditional strings versus template literal back-ticks
console.log("To make a multi-line string this way\n" +
"I have to concatenate two separate strings with a + sign");
/* prints: To make a multi-line string this way
I have to concatenate two separate strings with a + sign */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment