The back-tick character is not recognized as a valid character in IE11 when using the "use strict" directive when it works in other browsers such as Chrome.
What is the interpretation of this behavior, given that IE11 is still widely used even among Windows 10 users?
"use strict";
function doIt() {
let tt;
tt = 50;
alert(`${tt}`);
alert("test");
}
doIt();
Run codeHide resultError: {"message": "Invalid character", "filename": " http://stacksnippets.net/js ", "lineno": 18, "colno": 17}
source
share