Declaration
↔ (process) to create a Variable, usually via Literal
aka Declare, Variable-Declaration, Declare-Variable
Literal
JS Syntax to rep Code as literally written
function
JS Keyword to Declare function (with optional Argument Parameters)
var
JS Keyword to Declare mutable Variable with Function Scope
let
JS Keyword to Declare mutable Variable with Block Scope
const
JS Keyword to Declare read-only named constant Variable with Block Scope
async function
JS Keyword to Declare function with Asynchronous Code to return Promise
& allow await
inside
return
JS Keyword to specify a single Variable/Expression output from function
Variable Declaration
initial step of creating new Variable by creating a new Identifier
Variable Initialization
next step of assigning value to variable
References
Strongly-Typed
↔ of Programming Language to req Type assign for Variable Declarationimport
↔ JS Keyword Declaration to import live read-only views on exportsTDZ
↔ Region of Code outside Scope of a variable, variable uninitialized from Scope start to DeclarationDynamically-Typed
↔ of Variable not fixed to one Type at Declaration, can be reassigned, only become known at RuntimeTemplate Literal
↔ JS Syntax to Declarestring
via${}
Hoisting
↔ (mechanism) to access Variable before DeclarationGlobal Variable
↔ Variable Declare in Global Scope or Top-Level Codefunction
↔ JS Keyword to Declare function (with optional Argument Parameters)Object Literal
↔ JS Syntax to Declare & initiate new Objectvar
↔ JS Keyword to Declare mutable Variable with Function Scopelet
↔ JS Keyword to Declare mutable Variable with Block Scopeconst
↔ JS Keyword to Declare read-only named constant Variable with Block Scopeasync function
↔ JS Keyword to Declare function with Asynchronous Code to returnPromise
& allowawait
inside