Last active
September 14, 2019 23:42
-
-
Save paigen11/2a82746053155f5dfd13b443628d3660 to your computer and use it in GitHub Desktop.
Multi-line string examples using traditional strings versus template literal back-ticks
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
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