Syntax Error Only In Ie
I get a syntax error only in IE11 on this line and i can't seem to pinpoint what the issue is. Its on line two quizOptions.map((item, i) => { the error is: SCRIPT1002: Syntax Er
Solution 1:
ES6 arrow functions are not supported by Internet Explorer.
You could (probably) replace your example with this:
var quizOptions = cur_quizInfo.options;
quizOptions.map(function(item, i) {
var li = jQuery("<li>", {
class: 'quiz_answers',
text: item
}).appendTo(buttonList);
});
Post a Comment for "Syntax Error Only In Ie"