JavaScript
JavaScript function declared the same parameter twice
JavaScript rejected a function definition because the same parameter name appeared more than once.
JavaScript
JavaScript rejected a function definition because the same parameter name appeared more than once.
Observed message
SyntaxError: duplicate formal argument x
Why it happens
How to fix it
Official reference
MDN: SyntaxError: duplicate formal argument xRelated errors
Explore more