Next-Gen App & Browser
Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

ES6 Template Literals (Template Strings)

You can use multi-line strings and string interpolation features with template literals.

Last updated on : 2023-03-20

Browser Versions

IEIE

EdgeEdge

FirefoxFirefox

ChromeChrome

SafariSafari

OperaOpera

5.5 - 11
Test on IE 5.5 - 11 ...
13 - 111
Test on Edge 13 - 111 ...
2 - 33
Test on Firefox 2 - 33 ...
34 - 113
Test on Firefox 34 - 113 ...
4 - 40
Test on Chrome 4 - 40 ...
41 - 114
Test on Chrome 41 - 114 ...
3.2 - 9
Test on Safari 3.2 - 9 ...
9.1 - 16.4
Test on Safari 9.1 - 16.4 ...
9.5 - 28
Test on Opera 9.5 - 28 ...
29 - 95
Test on Opera 29 - 95 ...

...Fully Supported

...Partially

...No Support

Specifications

ECMAScript Language Specification # sec-template-literals

Syntax

// 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`

Browser Compatibility

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.

92
Hightooltip

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 Now...

KaneAI - Testing Assistant

World’s first AI-Powered E2E testing agent.

...
ShadowLT Logo

Start your journey with LambdaTest

Get 100 minutes of automation test minutes FREE!!

Signup for free

Did you find this page helpful?

Helpful

NotHelpful