Arguments (JavaScript)

An argument is any value that is passed into a function when calling the function.

What is an argument?

An argument is any value that is passed into a function when calling the function.

// the values *5* and *12* are arguments
let sum = add(5, 12);

Level: Apprentice · More JavaScript terms at this level

Updated