Here is a simple definition.
parameter = a variable in a function definition
arguments = the data you pass into the method’s parameters
function sum(a, b) {
return a + b;
}
上の関数でa や b がparameterです。
この関数に3, 5という数字を代入したら、3や5がargumentsです。
sum(3, 5);
コメントを書く