tbusser / jscc

This is the website for the JavaScript Compatibility Checker
http://jscc.info
88 stars 17 forks source link

Default parameters #22

Open andyhasit opened 6 years ago

andyhasit commented 6 years ago

It says the following code has no compatibility problems, but default parameters are well known not to work in IE.

function foo(x=4){return x*2}

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/default_parameters