Tag view

#advanced

Cross-subject tag search for related interview cards.

Clear

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

Tagged with advanced

6 cards

JavaScript Hard Theory

Property descriptors, getters and setters, Object.create, hasOwnProperty, and the in operator

JavaScript objects support descriptor-level control, computed accessors, explicit prototype creation, and different ways to check for properties.

  • Descriptors control writability and enumerability
  • Getters and setters run code on access
  • `in` and `hasOwnProperty` answer different questions

Property descriptors, getters and setters, Object.create, hasOwnProperty, and the in operator

JavaScript Hard Theory

Recursion, memoization, currying, debounce, and throttle in JavaScript

These patterns solve different problems: recursion for self-referential logic, memoization for caching, currying for partial application, and debounce or throttle for rate control.

  • Memoization trades memory for repeated-speed gains
  • Debounce waits for quiet time
  • Throttle limits call frequency

Recursion, memoization, currying, debounce, and throttle in JavaScript

React Hard Theory

shouldComponentUpdate, getDerivedStateFromProps, getSnapshotBeforeUpdate, and hooks vs lifecycle coverage

Some class lifecycle methods exist for optimization, derived state, or pre-commit DOM reads, and hooks do not map one-to-one with every lifecycle scenario.

  • shouldComponentUpdate controls update skipping
  • getDerivedStateFromProps is niche and often misused
  • getSnapshotBeforeUpdate captures DOM info before commit

shouldComponentUpdate, getDerivedStateFromProps, getSnapshotBeforeUpdate, and hooks vs lifecycle coverage

React Hard Theory

useLayoutEffect, forwardRef, useImperativeHandle, useTransition, useDeferredValue, and useId

These hooks and helpers solve timing, refs, deferred rendering, and stable identity concerns that basic hooks do not cover.

  • useLayoutEffect runs earlier than useEffect
  • forwardRef exposes refs across component boundaries
  • Transition hooks help prioritize urgent updates

useLayoutEffect, forwardRef, useImperativeHandle, useTransition, useDeferredValue, and useId