Course offer · HLD · LLD · System Design at ₹799 until 30 Nov (not interview packs)

ProgramsJavaScript

Advanced JavaScript

Learn Advanced JavaScript with small working examples of prototypes, closures, generators, proxies, workers, and the event loop. Follow each result step by step.

12 programs · open one, then the next

Start with Prototypes
  1. 01PrototypesAdvancedShare a greeting method in JavaScript with Student.prototype and new Student. Object.hasOwn separates own names from the method shared by both students.Open example →
  2. 02InheritanceAdvancedExtend a library item in JavaScript with class Book, extends, and super. Override describe to add an author; call the parent constructor before using this.Open example →
  3. 03Closures AdvancedAdvancedKeep separate visitor counts in JavaScript with closures returned by createCounter. Methods share private local state; the demo still allows negative counts.Open example →
  4. 04Currying AdvancedAdvancedReuse price and quantity in JavaScript with curry3 and chained single-argument calls. Add delivery in the final call; the helper requires exactly three inputs.Open example →
  5. 05Memoization AdvancedAdvancedCache square results in JavaScript with a closure and Map.has, so a cached zero is reused too. This cheap calculation teaches the pattern, not a measured speedup.Open example →
  6. 06Generators AdvancedAdvancedYield Fibonacci values in JavaScript with function* and a term limit. for...of consumes the generator; create a fresh one to restart an exhausted sequence.Open example →
  7. 07Iterators AdvancedAdvancedIssue three tickets in JavaScript with Symbol.iterator and next results containing value and done. Each new loop gets a fresh cursor rather than shared progress.Open example →
  8. 08ProxiesAdvancedValidate marks in JavaScript with Proxy get/set traps and Reflect. Reject integers outside 0–20; writes to the target object directly bypass the traps.Open example →
  9. 09Reflect APIAdvancedRead, write, and delete properties in JavaScript with Reflect methods. Refused changes to a fixed property return false; invalid targets can still throw errors.Open example →
  10. 10Web Workers AdvancedAdvancedTransfer an ArrayBuffer in JavaScript to a web worker and return a total with a job ID. The sender loses access to the buffer; its byteLength becomes zero.Open example →
  11. 11Event LoopAdvancedTrace the event loop in JavaScript: synchronous logs run first, then a promise microtask, then a timer. A zero delay does not mean immediate execution.Open example →
  12. 12Microtasks and MacrotasksAdvancedCompare queueMicrotask, promise reactions, and timers in JavaScript. A nested microtask joins the queue's end; all queued microtasks run before the timer.Open example →