mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 06:26:22 +00:00
489 B
489 B
id | title |
---|---|
5ec1f0af-b176-4c10-8490-d732f369ee45 | JavaScript Template Literals |
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}`)