Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
You can use multi-line strings and string interpolation features with template literals.
Last updated on : 2023-03-20
Browser Versions
IE
Edge
Firefox
Chrome
Safari
Opera
Fully Supported
Partially
No Support
ECMAScript Language Specification # sec-template-literals
// Untagged, these create strings: `string text` `string text line 1 string text line 2` `string text ${expression} string text` // Re-usable template: const templateFn = expression => `string text ${expression} string text`;
// Tagged, this calls the function "example" with the template as the // first argument and substitution values as subsequent arguments: example`string text ${expression} string text`
ES6 Template Literals (Template Strings) on IE is not supported on any IE versions.
ES6 Template Literals (Template Strings) on Edge is fully supported on all Edge versions.
ES6 Template Literals (Template Strings) on Firefox is fully supported on 34-113, and not supported on 2-33 Firefox versions.
ES6 Template Literals (Template Strings) on Chrome is fully supported on 41-114, and not supported on 4-40 Chrome versions.
ES6 Template Literals (Template Strings) on Safari is fully supported on 9.1-16.4, and not supported on 3.2-9 Safari versions.
ES6 Template Literals (Template Strings) on Opera is fully supported on 29-95, and not supported on 9.5-28 Opera versions.
ES6 Template Literals (Template Strings) on Safari on iOS is fully supported on 9.3-16.4, and not supported on 3.2-8 Safari on iOS versions.
ES6 Template Literals (Template Strings) on Android Browser is fully supported on 97-111, and not supported on 2.1-4 Android Browser versions.
ES6 Template Literals (Template Strings) on Opera Mobile is fully supported on 64-73, and not supported on 10-12 Opera Mobile versions.
ES6 Template Literals (Template Strings) on Chrome for Android is fully supported on all Chrome for Android versions.
ES6 Template Literals (Template Strings) on Firefox for Android is fully supported on all Firefox for Android versions.
ES6 Template Literals (Template Strings) on Samsung Internet is fully supported on all Samsung Internet versions.
Data sourced from
Overall Browser Compatibility Score
Note:ES6 Template Literals (Template Strings) shows a browser compatibility score of 92. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.
Test on 3000+ browsers for ES6 Template Literals (Template Strings) & more
Test your website for ES6 Template Literals (Template Strings) and other web technologies. Get 100 FREE automation test minutes!
Test NowKaneAI - Testing Assistant
World’s first AI-Powered E2E testing agent.
Did you find this page helpful?