This content originally appeared on DEV Community and was authored by Tejkumar Kempaiah
Are both same or different?
? Parameters:
- They are integral part of a function
- Parameters are values which a function expects when its being invoked.
- A function could accept parameter in the form of a variable, array, object and another function which is referred as callback functions
Example:
? Arguments:
- They are integral part of a function at the runtime
- Parameters are values which are passed to a function at the runtime.
- If no arguments are passed to a function in JS, By default it takes undefined arguments.
This content originally appeared on DEV Community and was authored by Tejkumar Kempaiah
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
Tejkumar Kempaiah | Sciencx (2021-06-02T04:34:26+00:00) ?Parameters & Arguments in JavaScript. Retrieved from https://www.scien.cx/2021/06/02/%f0%9f%94%a5parameters-arguments-in-javascript/
" » ?Parameters & Arguments in JavaScript." Tejkumar Kempaiah | Sciencx - Wednesday June 2, 2021, https://www.scien.cx/2021/06/02/%f0%9f%94%a5parameters-arguments-in-javascript/
HARVARDTejkumar Kempaiah | Sciencx Wednesday June 2, 2021 » ?Parameters & Arguments in JavaScript., viewed ,<https://www.scien.cx/2021/06/02/%f0%9f%94%a5parameters-arguments-in-javascript/>
VANCOUVERTejkumar Kempaiah | Sciencx - » ?Parameters & Arguments in JavaScript. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/02/%f0%9f%94%a5parameters-arguments-in-javascript/
CHICAGO" » ?Parameters & Arguments in JavaScript." Tejkumar Kempaiah | Sciencx - Accessed . https://www.scien.cx/2021/06/02/%f0%9f%94%a5parameters-arguments-in-javascript/
IEEE" » ?Parameters & Arguments in JavaScript." Tejkumar Kempaiah | Sciencx [Online]. Available: https://www.scien.cx/2021/06/02/%f0%9f%94%a5parameters-arguments-in-javascript/. [Accessed: ]
rf:citation » ?Parameters & Arguments in JavaScript | Tejkumar Kempaiah | Sciencx | https://www.scien.cx/2021/06/02/%f0%9f%94%a5parameters-arguments-in-javascript/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.