Home »
MCQs »
JavaScript MCQs
Which character is used to break up a code line within a text string in JavaScript?
51. Which character is used to break up a code line within a text string in JavaScript?
- Single quote (')
- Single backslash (\)
- Double quote (")
- Tipple single quote (''')
Answer: B) Single backslash (\)
Explanation:
The Single backslash (\) is used to break up a code line within a text string in JavaScript.
Example:
document.getElementById("test").innerHTML = "Hello \
IncludeHelp!";