Last active
August 29, 2015 14:22
-
-
Save codfish/a1e8f86d39c2aa8cf617 to your computer and use it in GitHub Desktop.
Interesting way to write a multiline string in JS, to keep things clean.
This file contains hidden or 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
| var multiLiner = String() + | |
| '<section>' + | |
| '<div class="content-wrapper">' + | |
| '<a href="#" class="js-link">Click Here</a>' + | |
| '</div>' + | |
| '</section>'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment