← Library08 Sources/Ei Maung PDFs

source · pdf · javascript

JavaScript On Point

08 Sources/Ei Maung PDFs/JavaScript On Point.md

JavaScript On Point

Official source

Actual coverage

Variables; data types; expressions/statements/operators; procedures/functions; arrays/objects; control flow/loops; OOP; promises and async/await; style; modules; DOM; debugging.

Durable knowledge

  • Values have types; variables are bindings. Understand coercion and prefer explicit conversions at boundaries.
  • Functions create reusable behavior and closures over lexical scope.
  • Arrays model ordered collections; objects model keyed records/behavior. Choose transformations that make intent visible.
  • Prototypes/classes organize shared behavior, but composition often keeps dependencies clearer.
  • Promises represent eventual completion. async/await changes syntax, not the need to handle rejection, concurrency, cancellation, and ordering.
  • Modules create explicit dependency boundaries.
  • The DOM is a mutable document tree; events propagate through capture and bubble phases.
  • Debugging is evidence-driven: reproduce, inspect state/control flow, isolate, fix the cause, and verify.

Modern caution

Use strict equality by default, avoid accidental globals, validate external data, and verify current browser/runtime APIs.

Knowledge connections