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?

  1. Single quote (')
  2. Single backslash (\)
  3. Double quote (")
  4. 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!";

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.