Home »
MCQs »
JavaScript MCQs
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?
- Single quotes ('')
- Backslash with single quote (\’'\')
- Backslashes (\\)
- Back-ticks (``)
Answer: D) Back-ticks (``)
Explanation:
In JavaScript, the string template literals use back-ticks (``) rather than the quotes ("") to define a string.