Quick recall mode

Keywords first, details second.

Use this mode when you want memory triggers only: title, summary, tags, and bullet anchors without long answers getting in the way.

Clear

Results update as you type. Press / to jump straight into search.

Quick recall

374 cards

JavaScript Medium Theory

DOM basics: DOM selection, querySelector, querySelectorAll, getElementById, traversal, manipulation, createElement, appendChild, removeChild, and innerHTML vs textContent

The DOM is the browser's tree representation of the page, and JavaScript can select, traverse, and update nodes through several APIs.

  • Selectors return elements or node lists
  • DOM manipulation changes the page tree
  • `textContent` is safer than arbitrary `innerHTML`
JavaScript Medium Theory

Function declarations, function expressions, arrow functions, default parameters, rest parameters, callbacks, higher-order functions, first-class functions, IIFE, and pure functions

JavaScript functions are first-class values, which is why callbacks, higher-order utilities, and different function forms all matter.

  • Declarations and expressions behave differently
  • Arrow functions change `this` behavior
  • Pure functions avoid hidden side effects