You can’t split a string across lines like that in javascript. You could accomplish the same readability by making each line a separate string and concatenating them with the plus sign like so:
var str = "<strong>English Comprehension</strong>"
+ "<br />"
+ "<ul>"
+ "<li>Synonyms/Antonyms/Word Meaning (Vocabulary)</li>"
and so on…
Related Contents:
- Share data between AngularJS controllers
- JavaScript by reference vs. by value [duplicate]
- Parse query string in JavaScript [duplicate]
- How to create an array containing 1…N
- Converting JavaScript object with numeric keys into array
- Arrow function without curly braces
- Is there a case insensitive jQuery :contains selector?
- How to add hours to a Date object?
- Chrome extension code vs Content scripts vs Injected scripts
- Mongoose – What does the exec function do?
- How to decide when to use Node.js?
- Remove All Event Listeners of Specific Type
- Input placeholders for Internet Explorer
- Add A Year To Today’s Date
- Which ECMAScript 6 features imply strict mode?
- What is an exclamation point in JavaScript?
- split string only on first instance of specified character
- Case-insensitive search
- Changing nav-bar color after scrolling?
- JavaScript object literals syntax error
- Recursively print all permutations of a string (Javascript)
- Add CORS header to an http request using Ajax
- Remembering state before app goes in foreground
- javascript remove “disabled” attribute from html input
- How to determine whether an object has a given property in JavaScript
- Cloud Firestore: Update fields in nested objects with dynamic key
- Why is window (and unsafeWindow) not the same from a userscript as from a tag?
- Lodash remove duplicates from array
- Copy selected text to the clipboard WITHOUT using flash – must be cross-browser
- JavaScript – Get Browser Height
- Why in JavaScript both “Object instanceof Function” and “Function instanceof Object” return true?
- Save Javascript objects in sessionStorage
- What are the best practices to follow when declaring an array in Javascript?
- Is it OK to add your own attributes to HTML elements? [duplicate]
- Objects and arrays addition
- Does JavaScript have undefined behaviour?
- Callback function example
- “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error for response from http://www.google.com/
- Web app in tvOS
- Creating and appending detached elements with d3.create
- Strange behavior of an array filled by Array.prototype.fill()
- What does the “$” sign mean in jQuery or JavaScript? [duplicate]
- Make a instead of by pressing Enter on a contenteditable
- How does the single equal sign work in the if statement in javascript
- Why is Math.pow(0, 0) === 1?
- HEX to Base64 converter for JavaScript
- remove item from array using its name / value
- CSS Transition doesn’t work with top, bottom, left, right
- Uncaught Invariant Violation: Rendered more hooks than during the previous render
- Disposing of view and model objects in Backbone.js