๐ง ๆฝๅทฅไธญ
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 2 years ago