引數
引數是在 函式定義中宣告的命名變數。它們用於引用傳遞給函式的 實參。
例如
js
const argument1 = "Web";
const argument2 = "Development";
example(argument1, argument2); // passing two arguments
// This function takes two values
function example(parameter1, parameter2) {
console.log(parameter1); // Output = "Web"
console.log(parameter2); // Output = "Development"
}
引數有兩種型別