Description
Template literals1 can span lines and also embed other values. ${} in a template literal will be computed and converted to a string.
Syntax
console.log(`This is a
backtick quotes string`)
console.log(`half of 100 is ${100 / 2}`)
Nov 12, 20201 min read
Template literals1 can span lines and also embed other values. ${} in a template literal will be computed and converted to a string.
console.log(`This is a
backtick quotes string`)
console.log(`half of 100 is ${100 / 2}`)