Last active
April 15, 2021 13:19
-
-
Save wpweb101/63db50487009524da5b221118dc25d20 to your computer and use it in GitHub Desktop.
JavaScript Multiline statement
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 a; | |
var b; | |
var c; | |
// Good Example | |
var examplestring = 'this is example ' + a + | |
'string that spans into' + B + | |
'three lines' + c; | |
// Bad example | |
var examplestring = '<p>this is example' + a +' with ' + b + 'three lines' + c; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment