🍄function
🚧 under construction -> named function
JS ⟩ value ⟩ object ⟩ function
an object that can be called (supports the [[Call]] internal method).
its name (or a variable that refers to it) is an identifier.
// function declarations
function f() { ... } // normal function
function* f() { ... } // generator function
async function f() { ... } // async function
async function* f() { ... } // async generator function
In JavaScript, function arguments are always passed by value. (values of the variables are copied into the function arguments)
👉 JavaScript Tutorial » Understanding JavaScript Pass-By-Value
function vs. constructor
Last updated
Was this helpful?