🚧 施工中
JS ⟩ value ⟩ function ⟩ name ⟩ anonymous function
a function without a function name.
// ⭐️ anonymous functions // ╭─── 🔸 ───╮ (function(){}); // function expression // ⭐️ Note: "()" are required❗️ // ╭─ 🔸 ─╮ () => {}; // arrow function // ⭐️ Note: // function declaration, can't be anonymous❗️ function(){} // ⛔ SyntaxError: Function statements require a function name
only function expression can be anonymous.
function declarations must have a name.
different types of functions
Function declaration
Function expression
what is a function declaration?
Last updated 1 year ago