11 KiB
| title | chunk | source | category | tags | date_saved | instance |
|---|---|---|---|---|---|---|
| Parameter - Glossary | MDN | 1/3 | https://developer.mozilla.org/en-US/docs/Glossary/Parameter | reference | web, html, css, javascript, documentation | 2026-05-05T05:39:56.177944+00:00 | kb-cron |
MDN HTML HTML: Markup language
HTML reference
HTML guides
Markup languages
CSS reference
CSS guides
Layout cookbook
JavaScriptJS JavaScript: Scripting language
JS reference
JS guides
Web APIs Web APIs: Programming interfaces
Web API reference
Web API guides
- Using the Web animation API
- Using the Fetch API
- Working with the History API
- Using the Web speech API
- Using web workers
Technologies
Topics
Learn Learn web development
Frontend developer course
- Getting started modules
- Core modules
- MDN Curriculum
- Check out the video course from Scrimba, our partner
Learn HTML
Learn CSS
Learn JavaScript
Tools Discover our tools
About Get to know MDN better
Parameter
Parameters are named variables declared as part of a function. They are used to reference the arguments passed into the function. For example: There are two kinds of parameters:
the most common kind; they pass values into functions. Depending on the programming language, input parameters can be passed in several ways (e.g., call-by-value, call-by-address, call-by-reference).
primarily return multiple values from a function, but are not recommended since they cause confusion
In this article
Parameters versus arguments
Note the difference between parameters and arguments :
- Function parameters are the names listed in the function's definition.
- Function arguments are the real values passed to the function.
- Parameters are initialized to the values of the arguments supplied.
See also
- Difference between parameters and arguments
- Function declaration
- Function expression
- Related glossary terms: