Your files never leave your device
Advertisement

Template Literals

Template literals use backticks (`) instead of quotes. They allow multi-line strings and easy string interpolation.

String Interpolation

Instead of using + to combine strings and variables, use ${variable} inside backticks.

Try It Yourself

        

Practice

Challenge 1: Create a template literal that calculates math inside the ${} block, like ${5 * 10}.

Related Guides

Sponsored Utility
While You're Here
Sponsored Recommendations
Advertisement