In my javascript code, I keep getting this type of same error whenever I run my application in IE11 browser.
It runs fine in Microsoft Edge, Chrome and Firefox.
Is there a way I could find unicode in my javascript code which might be causing this error? There are no console.log errors shown in IE11, chrome and Firefox. I didn’t expect anything in Chrome and Firefox since code is working fine.
Also, is IE11 expected to be less efficient? Is that the reason I keep getting such error?
var say = functіon(message) {
alert(message);
return message;
};
say(say("Goodbye!"));
When you compare that with another function, you should notice the the word function is correctly syntax-highlighted as black:
function doSomethingElse() {
}
That’s because the first set of code has a non-ascii character as the letter ‘i’ in the word function.
However, even Chrome cannot run that code without error.
What is your code that runs fine everywhere else except for IE11?