In JavaScript, the string template literals use ____ rather than the quotes to define a string?

57. In JavaScript, the string template literals use ____ rather than the quotes ("") to define a string?

  1. Single quotes ('')
  2. Backslash with single quote (\’'\')
  3. Backslashes (\\)
  4. Back-ticks (``)

Answer: D) Back-ticks (``)

Explanation:

In JavaScript, the string template literals use back-ticks (``) rather than the quotes ("") to define a string.

Comments and Discussions!

Load comments ↻






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