🈯function declaration

🚧 施工中

(declaration)

creates a function object and assigns it to the specified name (an identifier).

// function declarations
function  f(params) { ... }          // normal function
function* f(params) { ... }          // generator function
async function  f(params) { ... }    // async function
async function* f(params) { ... }    // async generator function

function declaration vs. variable declaration

📗 JS.info ⟩ Function Declarations

function in block (FiB)

function declaration in the global scope

function declaration instantiation

When an execution context is established for evaluating an ECMAScript function

📘 JS specFunctionDeclarationInstantiation

Last updated