JavaScript Equality & Type Coercion: == vs === (With Interview Traps)
A deep, interview-ready guide to JavaScript equality: == vs ===, truthy/falsy, ToPrimitive coercion, Object.is, NaN, -0, and common output questions.
Practice
Search by concept, narrow to a roadmap, or pick a tag to focus on the exact topic you want to rehearse.
75 articles · page 8 of 9
A deep, interview-ready guide to JavaScript equality: == vs ===, truthy/falsy, ToPrimitive coercion, Object.is, NaN, -0, and common output questions.
A deep, interview-ready guide to JavaScript modules: ESM vs CommonJS, named vs default exports, live bindings, top-level await, Node/browser differences, and common pitfalls.
A practical guide to prototypes in JavaScript: prototype chain, __proto__ vs prototype, new operator, inheritance patterns, and common interview questions.
Interview-ready guide to debounce vs throttle: how they work, when to use each, and clean JavaScript implementations (with leading/trailing options).
A practical guide to Map/Set and WeakMap/WeakSet: key differences, memory behavior, real use cases, and common interview questions with examples.
A practical guide to frontend memory leaks: the most common causes (listeners, timers, DOM refs, closures), how to detect them in Chrome DevTools, and how to fix them.
Interview-focused async/await guide: how await works, common mistakes, parallelizing with Promise.all, error handling patterns, and when to avoid await-in-loop.
A practical guide to JavaScript Promises for interviews: states, chaining rules, error propagation, polyfills for all/allSettled, and concurrency patterns.
Interview-ready explanation of hoisting and the Temporal Dead Zone: what actually gets hoisted, why let/const behave differently, and common trick questions with outputs.