Skip to main content

Variable ↔ named ref (Identifier) bound to a Value

aka Variables

a variable can be either a Primitive or Reference Value type

References

  1. ParameterVariable pass into function to define Function Signature, imports Arguments & act as local variable

  2. Declaration ↔ (process) to create a Variable, usually via Literal

  3. Stubline of code (for function), indexed by __line number & VariableType

  4. Global VariableVariable Declare in Global Scope or Top-Level Code

  5. Strongly-Typed ↔ of Programming Language to req Type assign for Variable Declaration

  6. Top Type ↔ universal (super-) Type assignable to any Variable

  7. constJS Keyword to Declare read-only named constant Variable with Block Scope

  8. Type AnnotationTS Syntax to annotate Variables with Types

  9. Variable Declaration ↔ initial step of creating new Variable by creating a new Identifier

  10. letJS Keyword to Declare mutable Variable with Block Scope

  11. varJS Keyword to Declare mutable Variable with Function Scope

  12. Object ↔ any non-Primitive Variable Type rep a collection of properties. Pass by reference

  13. Scope Chain ↔ Link to Variable from outer Scopes to current Scope

  14. Type Inference ↔ (feature) TSC to auto-derive implicit Type for Variable (w/o explicit Type Annotation)

  15. Dynamic LevelTS Runtime Language Level of JS Source Code & Variables

  16. undefinedPrimitive Value to rep Variable "not initialized" or "not existing" (for object property)

  17. iterable ↔ any Variable can loop over its elements

  18. Identifier ↔ name/reference for Variable as pointer to bind a Value to a memory address

  19. Type-Check ↔ (process) to check Variable assigned expected Types (usually done statically during Compile Time)

  20. Static Type System ↔ system to Type-Check Type of Variable (known & expected) at Compile Time

  21. Dynamically-Typed ↔ of Variable not fixed to one Type at Declaration, can be reassigned, only become known at Runtime

  22. Scope ChainUpwards Unidirectional access to Variables from current scope to outer scopes via Variable Lookup

  23. Binding ↔ (formal ECMAScript term for Variable) Identifier to catch & hold Value 🐭

  24. Scope ↔ Placewhere Variable is declared

  25. Dependency ↔ any Variable local to FC Scope to control Hook Trigger

  26. [**_Variable_**](variable) inside [Scope](scope) of hook is not relevant [Dependency](dependency_deps-array) ↔ true

  27. Stable VariableVariable constant with each render

  28. Lexical Scope ↔ Placement environ where Code is defined to determine Variable Scoping

  29. Lexical ↔ of relating to words (Expressions or Variables)

  30. returnJS Keyword to specify a single Variable/Expression output from function

  31. First-Class Functions ↔ of function equiv to regular Variables

  32. Generic Type Variable ↔ special Variable that works on Types instead of Values

  33. Type Assignment ↔ code to assign Type to Variable/Parameter using :

  34. "strictNullChecks": true ↔ to throw Exception when access Variable which potentially be null/undefined

  35. "noUnusedLocals": true ↔ to warn/throw when Function Scope Variable unused (inside function)

  36. Type GuardRuntime Type-Check to Narrow Type of Variable

  37. Non-Null Assertion Operator ↔ postfix ! Type Assertion to Assert that Variableundefined || null

  38. asType Assertion Type Operator to Assert Variable as Type

  39. useRef()Stateful Hook to persist Passive State Variable across renders in FC, as ref handle Escape Hatch to DOM API elements

  40. mutable ↔ (typeof) Variable that can be changed

  41. Initial State ↔ value of Variable/property on first run of Component

  42. Hoisting ↔ (mechanism) to access Variable before Declaration

  43. Function ScopeVariable access restrict to only inside function body.

  44. Global Scope ↔ Outside any Block. Variableaccess everywhere

  45. Scoping ↔ How Variables are organised & accessed

  46. OperandVariable to manipulate by JS Operator

  47. Variable Lookup ↔ (process) to look upwards for Variables in Scope Chain, when not in Lexical Environment

  48. Scope of a variableRegion of code where Variable can be accessed