Dr. Derek Austin 🥳
1 min readSep 24, 2019

--

That’s a good point that backtick literals will not work in Internet Explorer and older devices, including Windows phones!

Thanks for sharing Zsolt Nagy-Perge !!!

A great reference for compatibility is CanIUse.com, which clearly shows in the image above that IE and older browsers are not supported.

Another option would be using Babel to compile the code — this would actually replace all the backticks automatically.

I wrote about how Babel compiles template literals in this article:

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

No responses yet