| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/Redeclared_parameter | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
SyntaxError: redeclaration of formal parameter "x" (Firefox) SyntaxError: Identifier "x" has already been declared (Chrome)
SyntaxError
, let. JavaScript let.
"arg" :
function f(arg) {
let arg = "foo";
}
// SyntaxError: redeclaration of formal parameter "arg"
"arg" , , . , let . , , .
function f(arg) {
arg = "foo";
}
function f(arg) {
let bar = "foo";
}
TypeError (Firefox bug 1275240).This page was last modified on 17 . 2024 . by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |