kb/data/developer.mozilla.org/en-US/docs/Glossary/Parameter-0.md

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 CSS: Styling language

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

All All web technology

Technologies

Topics

Learn Learn web development

Frontend developer course

Learn HTML

Learn CSS

Learn JavaScript

Tools Discover our tools

About Get to know MDN better

Blog

  1. Glossary
  2. Parameter

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:

input 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).

output/return parameters

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