Glossary term
What is parameter? Meaning for developers
In JavaScript Core
The name in the function definition (num in function square(num)). Just a local variable of that call's execution context, filled from the argument.
Learn it properly · JavaScript CoreLesson 1: How JS Works: The Execution ContextEverything in JavaScript happens inside an execution context. How the global one is created — memory phase first, then code phase — and why that order explains almost everything that follows.In DSA
The name a function uses for an input, written in its definition: function add(a, b) has parameters a and b.
Learn it properly · DSALesson 7: FunctionsPackage a piece of logic, give it inputs and get a result back. The difference between return and console.log, and why every interview answer is a function.