Can template literals be used for multi-line string formatting?

  • Yes
  • No
  • Only with the use of the escape character
  • Depends on the browser support
Template literals in JavaScript can be used for multi-line string formatting by directly including line breaks within the backticks. This makes it easier to create and maintain multiline strings without the need for explicit concatenation or escape characters.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *