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.
Binary data in JavaScript: typed array types and how values wrap, clamp or round, ArrayBuffer and shared views, subarray vs slice, DataView and endianness, TextEncoder for strings, base64 and hex helpers, resizable and transferable buffers, Float16Array, and where binary data shows up in real code.
kvi5hnuCode Sprout team member8 minHow garbage collection decides what to free, why a Map used as a cache can leak memory, and how WeakMap and WeakSet attach data to objects without keeping them alive. Plus WeakRef and FinalizationRegistry, symbols as weak keys, and when (rarely) to use them.
kvi5hnuCode Sprout team member7 minSet and Map in depth: adding, checking and deleting, SameValueZero equality and object identity, insertion-order iteration, the ES2025 set methods (union, intersection, difference), counting and grouping with Map and Map.groupBy, ES2026 getOrInsert, JSON conversion, and Map vs plain objects.
kvi5hnuCode Sprout team member6 minUsing ES modules for real: script type=module and its loading behavior, CORS and local servers, import maps, modulepreload, dynamic import() for lazy loading, top-level await, import.meta, JSON imports, Node's ESM vs CommonJS rules, require(esm), and bundlers.
kvi5hnuCode Sprout team member9 minThe standard JavaScript module syntax in depth: named and default exports, every form of import, renaming, namespace imports, side-effect imports, re-exports and barrel files, live read-only bindings, hoisting, strict mode, evaluation order, circular imports, and default-vs-named best practices.
kvi5hnuCode Sprout team member9 minWhy JavaScript needs modules, how developers built them from closures and IIFEs, how bundlers wrap files, and how Node's CommonJS works: require, exports vs module.exports, the module wrapper, caching, resolution, circular dependencies and copied values.
kvi5hnuCode Sprout team member8 minWhen to extend a class and when not to: the problems with inheritance, composition and delegation with private helpers, strategy objects, Object.assign and subclass-factory mixins, abstract classes with template methods, duck-typed interfaces, and a checklist for designing class hierarchies.
kvi5hnuCode Sprout team member8 minInheritance with class extends: the super() call and its rules, overriding methods and calling super.method(), inherited static methods, polymorphism, new.target and abstract base classes, the overridden-method-in-constructor trap, custom Error classes, and subclassing Array and Map safely.
kvi5hnuCode Sprout team member6 minEverything in a modern JavaScript class: constructors, methods, getters and setters, public fields, static methods, fields and blocks, private #fields and #methods, #x in obj checks, arrow-function fields for callbacks, class expressions, strict mode, hoisting, and how it all maps onto prototypes.
kvi5hnuCode Sprout team member7 minWhat a "class" really is in JavaScript: objects sharing a prototype. Factory functions with Object.create, constructor functions and new, the prototype and constructor properties, how instanceof and isPrototypeOf work, why methods belong on the prototype, and adding methods to existing classes.
kvi5hnuCode Sprout team member7 minFunctional programming techniques in everyday JavaScript: pure functions and immutability, data pipelines with map/filter/reduce, higher-order helpers like negate, unary and tap, composition with pipe and compose, partial application, currying, and memoization with correct cache keys.
kvi5hnuCode Sprout team member7 minThe built-in properties and methods every JavaScript function has: length, name and prototype; call and apply for choosing this; bind for fixing this and partially applying arguments (and its gotchas); toString; and the Function constructor, why it ignores local scope, and why to avoid it.
kvi5hnuCode Sprout team member7 minWhat a closure is and why every JavaScript function has one: lexical scope, functions that remember variables after their outer function returns, private state, counters, once, memoize and debounce, the classic var-in-a-loop bug, stale closures, this in closures, and memory leaks.
kvi5hnuCode Sprout team member8 minJavaScript functions are first-class values: store them in variables, objects and arrays, pass them as callbacks, return them from other functions. Dispatch tables instead of switch, function properties for state and caching, and using functions (IIFEs) as private namespaces, compared with modules.
kvi5hnuCode Sprout team member6 minHow arguments reach parameters in JavaScript: missing and extra arguments, default values (and when they apply), rest parameters, the legacy arguments object, spreading arrays into calls, destructured "named" parameters with defaults, pass-by-sharing, and validating argument types.
kvi5hnuCode Sprout team member7 minThe five ways a JavaScript function gets called, and how each one decides the value of this: plain calls, method calls, constructors with new, call/apply/bind, and implicit calls. Losing this in callbacks and its fixes, method chaining, recursion, the call stack and stack overflow.
kvi5hnuCode Sprout team member8 minThe three main ways to define a function in JavaScript: declarations, function expressions and arrow functions. Hoisting, named function expressions, return values, arrow syntax rules and pitfalls, functions in blocks, nested functions, and which form to choose.
kvi5hnuCode Sprout team member8 minConverting arrays to strings with join and toString, checking for arrays reliably with Array.isArray, working with array-like objects (arguments, NodeList, { length }) via Array.from and borrowed methods, and treating strings as read-only arrays of characters, including the emoji trap.
kvi5hnuCode Sprout team member6 minWhy [10, 9, 1].sort() gives [1, 10, 9], how comparator functions work, sorting numbers, strings (localeCompare, Intl.Collator, natural "file2 before file10" order), dates and objects by several keys, stable sorting, broken comparators, reverse, toSorted, and shuffling correctly.
kvi5hnuCode Sprout team member6 minWorking with parts of an array: slice to copy a range, splice to remove, insert and replace in place, fill and copyWithin, and the ES2023 non-mutating versions toSpliced, toSorted, toReversed and with. Includes pagination, chunking, moving items, and the slice vs splice interview question.
kvi5hnuCode Sprout team member6 min