Template literals syntax is not working in IE11

If you look at the ECMAScript 6 compatibility table, you’ll see that template literals are not supported by IE11. The "use strict"; statement doesn’t really change anything, because before it is determined whether a code is in strict mode, it has to be parsed first, but it can’t be parsed, because you’re using syntax that the parser doesn’t recognize.

If you want your code to work in IE11, you should transpile it with Babel.

Leave a Comment