The Spread and Rest Operators in JavaScript
Learn the JavaScript spread and rest operators with real examples. Clone arrays, merge objects, write variadic functions, and master the everyday patterns used in modern JavaScript and React.
Learn the JavaScript spread and rest operators with real examples. Clone arrays, merge objects, write variadic functions, and master the everyday patterns used in modern JavaScript and React.
Learn JavaScript destructuring from scratch: array and object unpacking, default values, renaming variables on extraction, nested structures, and function parameter patterns.
Master JavaScript operators: arithmetic, strict vs loose equality, logical AND/OR/NOT, short-circuit evaluation, nullish coalescing (??), and optional chaining (?.)
Learn JavaScript type coercion, why “5” + 3 gives “53” but “5” – 3 gives 2, how the Abstract Equality algorithm works, implicit vs explicit conversion rules, and how to write coercion-safe code.
Learn all six JavaScript falsy values, the difference between null and undefined, how booleans work in practice, and how falsy checks power your conditional logic.
Learn how JavaScript stores all numbers as 64-bit floats, why 0.1 + 0.2 !== 0.3, how to fix floating point issues, NaN, Infinity, Number methods, Math object, and BigInt.
Learn JavaScript strings: single quotes vs double quotes vs template literals, string immutability, slice, includes, replace, split, trim, and padStart, with interactive demos.
Learn all 8 JavaScript data types: the 7 primitives (string, number, bigint, boolean, undefined, null, symbol) and the object type. Understand the typeof operator, and its quirks.
Learn the differences between var, let, and const in JavaScript. Understand block scope vs function scope, and why const should be your default choice in modern JavaScript.
Learn what ECMAScript means, how JavaScript evolved from ES5 to ES6 and beyond, and how to know which modern JavaScript features you can safely use today.