Loading…
Loading…
JavaScript
A complete JavaScript course — from the language fundamentals and the DOM to modern features, modules, async, tooling and the parts you actually reach for day to day. 140 articles with practice quizzes.
Process data that arrives over time: the async iteration protocol and Symbol.asyncIterator, for await...of, async generators for paginated APIs and polling, Array.fromAsync, Node streams and events as async iterables, cleanup on break, error handling and the pitfalls.
kvi5hnuCode Sprout team member7 minLearn async functions and await: what they return, how await pauses only the function, try/catch/finally for errors, return vs return await, sequential vs parallel awaits, loops and the forEach trap, top-level await in modules, async methods, and the mistakes interviewers ask about.
kvi5hnuCode Sprout team member8 minRun async work concurrently with the promise combinators: Promise.all for all-or-nothing results, allSettled for partial success, race for timeouts, any for first success and AggregateError. Plus sequential vs parallel, when promises start, limiting concurrency, and common mistakes.
kvi5hnuCode Sprout team member6 minMaster promise chains: why every then returns a new promise, how returned values and promises flow to the next step, the forgotten-return bug, how errors skip ahead to catch, recovering and rethrowing, finally semantics, then(a, b) vs then(a).catch(b), unhandled rejections and retry patterns.
kvi5hnuCode Sprout team member7 minA clear guide to promises: what a promise represents, pending, fulfilled, rejected, settled and resolved, consuming results with then, catch and finally, creating promises with new Promise, resolve and reject, Promise.withResolvers, Promise.try, promisifying callback APIs, and common mistakes.
kvi5hnuCode Sprout team member6 minThe foundation of async JavaScript: why JavaScript is single-threaded yet non-blocking, callbacks for timers, events and Node's error-first APIs, callback hell, and the event loop explained: call stack, host APIs, task queue, microtask queue, rendering, and classic output-order puzzles.
kvi5hnuCode Sprout team member7 minES2025 iterator helpers bring map, filter, take, drop, flatMap, reduce, toArray, forEach, some, every and find to every iterator, lazily. Learn how they differ from array methods, Iterator.from, working with Maps, Sets and generators, infinite pipelines, cleanup, Iterator.concat and Array.fromAsync.
kvi5hnuCode Sprout team member7 minThe other half of generators: yield as an expression, sending values in with next(value), why the first next() argument is ignored, ending a generator with return(), injecting errors with throw(), try/finally cleanup, delegation with yield*, and practical uses like state machines and tokenizers.
kvi5hnuCode Sprout team member6 minGenerators made clear: what function* and yield do, how a generator pauses and resumes, generator objects as iterators, iterable classes in one line, infinite and lazy sequences, yield* for delegation and recursion (tree walking, flattening), return values, and common mistakes.
kvi5hnuCode Sprout team member5 minHow for...of, spread and destructuring really work: iterables, iterators and result objects, Symbol.iterator, writing custom iterable classes and functions, laziness, one-shot iterators, the return() method for cleanup on break, and the most common iteration errors.
kvi5hnuCode Sprout team member6 minEverything about timers: setTimeout and setInterval, cancelling with clear functions, why delays are minimums and setTimeout(fn, 0) isn't immediate, setInterval vs chained setTimeout, promise-based sleep, debounce and throttle, background tab throttling, and alternatives like requestAnimationFrame.
kvi5hnuCode Sprout team member7 minParse and build URLs safely: the parts of a URL and the URL class, resolving relative URLs, URL.canParse and URL.parse, query strings with URLSearchParams, percent-encoding with encodeURIComponent vs encodeURI, the + vs %20 trap, URLPattern, and URL security mistakes.
kvi5hnuCode Sprout team member7 minGet far more from console than console.log: log levels and where output goes, format specifiers and CSS styling, logging objects without surprises, console.table, group, count, time and timeLog, assert and trace, plus logging habits for debugging and production.
kvi5hnuCode Sprout team member6 minThe text side of Intl: sorting and searching strings with Intl.Collator and localeCompare (accents, case, numbers), choosing plural forms and ordinal suffixes with PluralRules, splitting text into graphemes, words and sentences with Segmenter, plus DisplayNames, Intl.Locale and locale negotiation.
kvi5hnuCode Sprout team member5 minFormat values for real users with Intl: locales and options, Intl.NumberFormat for decimals, currencies, percentages, units and compact numbers, Intl.DateTimeFormat with styles and time zones, formatToParts and ranges, RelativeTimeFormat, ListFormat, DurationFormat, and performance tips.
kvi5hnuCode Sprout team member6 minTemporal, the modern date and time API added in ES2027: why Date wasn't enough, choosing between Instant, ZonedDateTime and the Plain types, immutable arithmetic that handles month ends and daylight saving time, Durations, comparing and sorting, converting from Date, support status and polyfills.
kvi5hnuCode Sprout team member7 minHow Date really works: one millisecond timestamp, creating dates, the 0-based month trap, local vs UTC getters, why date-only strings parse as UTC, invalid dates, overflow, date arithmetic and DST, comparing and copying, ISO strings and JSON, locale formatting, and when to reach for Temporal.
kvi5hnuCode Sprout team member7 minBeyond regex basics: escaping user input with RegExp.escape, inline modifiers and duplicate named groups (ES2025), Unicode normalization, tested recipes for common tasks, why validating emails and URLs with regexes goes wrong, catastrophic backtracking and ReDoS, and how to keep patterns readable.
kvi5hnuCode Sprout team member6 minEvery regex flag (g, i, m, s, u, v, y, d) and every method that uses regexes: test and exec, match vs matchAll, search, replace and replaceAll with $ patterns and replacer functions, split with captures, the stateful lastIndex trap with g and y, and match indices.
kvi5hnuCode Sprout team member7 minLearn to read and write regular expressions: regex literals vs new RegExp, escaping, character classes and shorthand like \d \w \s, Unicode property escapes, quantifiers and greedy vs lazy matching, alternation, capturing and named groups, backreferences, anchors, word boundaries and lookarounds.
kvi5hnuCode Sprout team member8 min