I want to build a long string in JavaScript that is made up of many components and I'd like use multiple lines to make the code easier to understand. I tried:
data = '<!doctype html>
<!-- HTML5 -->
<html>
<head>
<meta charset="utf-8" />
<title>Webplaces</title>'
+
styleBlock
+
'</head>
<body>'
+
outerHTML
+
'</body>
</html>' ;
but JavaScript doesn't like that at all. Is there a way to do this?
Thanks