Understanding Function Parameters and Arguments in Javascript


Functions can take parameters, which are used as variables inside the function.

Source Code

function add(a, b) {
  return a + b;
}
console.log(add(2, 3)); // 5
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments