What is a template literal in JavaScript?

JavaScript Associate Easy

JavaScript Associate — Easy

What is a template literal in JavaScript?

Key points

  • Template literals are delimited by backticks
  • They support embedded expressions with ${}
  • They can span multiple lines for better readability

Ready to go further?

Related questions