by @jm3 · aka John Manoogian3

Frequent, bite-size mini-milestone updates as I fast-forward merge* my front-end web development skills up to 2019 levels. Learn more

Javascript template literals

Posted at — Jun 9, 2019

Javascript template literals are string literals that support embedded expressions, like double quoted “foo %{bar} etc” strings in Ruby. You can use multi-line strings and string interpolation features with them. They were called “template strings” in prior editions of the ES2015 specification.

syntax: string text ${expression} string text

Handily, multi-line strings and newlines are both allowed.

The downside? Syntax highlighting in editors doesn’t really work so well.

Read the docs.