Code to go logo
Created using Figma
Use Cases
Contribute
How to write a multiline string in JavaScript
Strings
By Jad Joubran ·
Last updated Feb 26, 2024
const text = `Using the backtick character, you can define a string that spans multiple lines.`;
Feb 26, 2024
1
Jad Joubran
See answer
1
Jad Joubran
Template literals
on MDN
Learn JavaScript step by step
Related use cases
How to interpolate in JavaScript