Junior From PDF JavaScript JavaScript

What is the difference between parameters and arguments?

  • Parameters: variables listed in the function definition
  • Arguments: actual values passed to the function when calling it

Example:

function greet(name) { // name = parameter

console.log(`Hello ${name}`);

}
greet("Sandeep"); // "Sandeep" = argument

More from JavaScript Tutorial

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details