I am using BackboneJS in my app. Below code works on google chrome but in IE (version 10) it gives syntax error in function parameter:
Syntax Error: Expected ')'
Below is my code:
initialize: function (options='default value') {
console.log(options)
},
I have handled it by using if-else condition inside the function for default parameter, but I am unable to understand the reason that why it is working in chrome but not in IE 10 ?