| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/Missing_formal_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:
SyntaxError
" " - " ". . identifiers, , , . - . , () , , .
JavaScript, - ( "$" "_") . , , - .
. , :
function square(3) {
return number * number;
};
// SyntaxError:
function greet("Howdy") {
return greeting;
};
// SyntaxError:
function log({ obj: "value"}) {
console.log(arg)
};
// SyntaxError:
:
function square(number) {
return number * number;
}
function greet(greeting) {
return greeting;
}
function log(arg) {
console.log(arg);
}
, :
square(2); // 4
greet("Howdy"); // "Howdy"
log({ obj: "value" }); // Object { obj: "value" }
This page was last modified on 24 . 2025 . 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 |