Created
April 26, 2019 09:28
-
-
Save mjj2000/e06d2e6792fca483667d4fdd78118c64 to your computer and use it in GitHub Desktop.
Heredoc for Javascript
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
// assign html string value with easy-to-ready format | |
const html = (function() {/* This line will be removed!!!! | |
<div> | |
hello world!!! | |
</div> | |
This line will be removed!!!! */}).toString().split('\n').slice(1,-1).join('\n'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment