Non-Simple parameter lists

suggest change
function a(x = 5) {
  "use strict";
}

is invalid JavaScript and will throw a SyntaxError because you cannot use the directive "use strict" in a function with Non-Simple Parameter list like the one above - default assignment x = 5

Non-Simple parameters include -

function a(x = 1) {
  "use strict";
}
function a({ x }) {
  "use strict";
}
function a(...args) {
  "use strict";
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents