๐function
๐ง under construction -> named function
Last updated
Was this helpful?
๐ง under construction -> named function
Last updated
Was this helpful?
Was this helpful?
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
every function
is actually a object.
is a .
In JavaScript, function s are always passed by value. (s of the s are copied into the function arguments)
๐ ยป
function vs. ( ๐ โฉ , ็ใ๐พ ็จๅผใ )
function vs.
recursive function - a function that calls itself.