在 JavaScript 中,可以使用許多的方法聲明函數。首先通常方法是使用 function 關鍵字: // 函數聲明 function greet(who) { return `Hello, ${who}!`; } // 函數表達式 const greet = function (who) { return `Hello, ${who}`; }; 我將函數聲明和函數表達式稱之為_常規