Glossary term
What is argument? Meaning for developers
In JavaScript Core
The value you actually pass when calling: square(4). It is copied into the matching parameter.
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 actual value passed in when you call a function: in add(2, 3), 2 and 3 are the arguments.
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.