JavaScript NotesRohit’s interview study guide

Interview study guide

JavaScript, properly understood.

Everything from my JavaScript study doc, reorganised by topic, cleaned up, and filled in where the notes were only a heading or a screenshot. Every idea has code you can paste into a console.

Chapters
11
Topics
136
Code samples
262
Added beyond the doc
19
01Language FundamentalsTypes, variables, hoisting, equality and the small operators that trip people up in interviews.10 topics02Functions, Scope & thisDeclarations vs expressions, closures, the four rules of this, call/apply/bind, currying and composition.15 topics03Objects & PrototypesHow objects are created, how the prototype chain works, own vs inherited properties, descriptors, symbols and proxies.20 topics04Classes & OOPES classes, private fields, static blocks, inheritance, polymorphism, abstract classes, overloading and mixins.11 topics05Arrays & CollectionsThe array methods you'll use every day, which ones mutate, loops, and when to reach for Map, Set, WeakMap and WeakSet.14 topics06Copying & ImmutabilityShallow vs deep copies, every cloning technique and its catch, why React wants new objects, and freezing.9 topics07Async, the Event Loop & IterationPromises, async/await, how the event loop orders microtasks and macrotasks, concurrency, generators, workers and animation frames.19 topics08Browser, DOM & EventsScript loading, event propagation, delegation (and how React does it), debounce and throttle, passive listeners, storage and CSS specificity.11 topics09ModulesES modules vs CommonJS, named and default exports, live bindings, dynamic import, and why modules behave like singletons.7 topics10Design PatternsSingleton, factory, observer, decorator (the pattern and the @ syntax), dependency injection and object pooling — in idiomatic JavaScript.7 topics11Coding Challenges"Implement it yourself" questions with clean solutions: polyfills, caches, data structures and string utilities. Debounce and throttle are in Browser, DOM & Events; curry and compose are in Functions.13 topics

Added marks topics that weren’t in my original doc. Tick Learned on a topic to track what you’ve revised.

Sync progress across devices

Type the same private phrase on your Mac and your phone, and your Learned ticks follow you between them — on every study site.

The phrase never leaves this device: only a fingerprint of it is sent, and the server stores a fingerprint of that. Anyone who knows the phrase could see or change your ticks, so pick something you don’t use elsewhere.

Sync is on in this browser.

Sync ID

This ID must be the same on every device. If another device shows a different one, its phrase is different (capital letters count): tap “Turn off here” on it and type the phrase again exactly.