Parameter vs Argument
Concept Check Easy
Question
In `function greet(name) { ... }` called as `greet("Ada")`, what is "Ada"?
Hint
Parameters are in the definition; arguments are at the call site.
Explanation
"Ada" is an argument — the actual value passed to the function when calling it. name is the parameter — the named placeholder in the function definition. Parameters are slots; arguments are the values that fill those slots at call time.
Related Resources
Related Lessons
- Functions
Learn how functions work in programming.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.