I have multiple strings as below -
var str1 = "this is a test that goes on and on"+param1
var str2 = "this is also a test this is also"+param2+" a test this is also a test this is also a tes"
var str3 = "this is also a test"
I'm assigning each string into its own var so as to keep the code readable and prevent the string values from trailing across the string. Also as I have read that the newline javascript character does not work in all browsers - Creating multiline strings in JavaScript
I then concat the strings -
var concatStr = str1 + str2 + str3
and return the string concatenated value.
Is this an acceptable method of breaking up a large string into into its parts. Or can it be improved ?