TypeError: variable "x" redeclares argument (Firefox)
Cause of the Error: A variable which is the parameter of the function has been re-declared with the var keyword inside the function.
Example 1: In this example, the variable(‘varName’) has been redeclared.
TypeError: variable "varName" redeclares argument
Example 2: In this example, the variable(‘argName’) has been redeclared and function is called as well.
TypeError: variable "argName" redeclares argument