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.
How if, else and else if decide what runs, how truthiness affects conditions, the dangling-else trap and why braces matter, why else if is just nesting, guard clauses and early returns for flatter code, writing clear conditions, and the classic mistakes: = instead of ===, empty arrays and NaN.
kvi5hnuCode Sprout team member7 minWhat statements are and how they differ from expressions, expression statements and the code that can't start one, blocks and block scope, the empty statement and the stray-semicolon bug, the declaration statements, and how the kinds of statements fit together. Starts Part 5.
kvi5hnuCode Sprout team member7 minThe remaining JavaScript operators: the conditional ?: operator and when nested ternaries hurt, typeof and its eight answers, what delete really removes (and why it leaves holes in arrays), void and why void 0 exists, and a first look at await. Ends Part 4 with a review quiz.
kvi5hnuCode Sprout team member8 minWhat eval() does with strings of code, why a direct call sees local variables while an indirect call runs globally, how strict mode limits it, why eval is a security and performance risk, CSP and unsafe-eval, and the safer tools to use instead: JSON.parse, lookup tables, new Function and sandboxes.
kvi5hnuCode Sprout team member8 minAssignment as an expression with a value, chained assignment and its shared-object trap, every compound operator from += to >>>=, why a op= b differs from a = a op b, logical assignment with ||=, &&= and ??= and why it skips the write entirely, plus common patterns and errors.
kvi5hnuCode Sprout team member7 minHow &&, || and ?? really work: they return one of their operands rather than true or false, short-circuit their right side, and differ in which values trigger a fallback. Also ! and !!, De Morgan's laws, guards, defaults, the React && 0 pitfall, and when to choose ?? over ||.
kvi5hnuCode Sprout team member8 minHow <, >, <= and >= compare numbers, strings, dates and mixed types, why "10" < "9" is true and null >= 0 is true while null == 0 is false, locale-aware sorting with localeCompare and Intl.Collator, the in operator vs Object.hasOwn, #private in obj, and how instanceof really works.
kvi5hnuCode Sprout team member8 minHow &, |, ^, ~, <<, >> and >>> work on 32-bit integers, why 2 ** 31 | 0 is negative, the x | 0 truncation trick and its limits, permission flags and bit masks, packing colors, classic interview bit tricks, and bitwise operators on BigInt.
kvi5hnuCode Sprout team member8 minEvery arithmetic operator in depth: floating-point division, the remainder operator and negative numbers (plus a true modulo), exponentiation, the + operator's add-or-concatenate algorithm, unary plus and minus as conversions, prefix vs postfix ++ and --, and BigInt arithmetic rules.
kvi5hnuCode Sprout team member8 minHow JavaScript decides what an expression with several operators means: operand counts, lvalues, side effects, the precedence table, left and right associativity, why -2 ** 2 and a ?? b || c are syntax errors, and the strict left-to-right order in which operands are evaluated.
kvi5hnuCode Sprout team member8 minWhat an expression is, the simplest ones (literals, keywords, identifiers), array and object initializers, function expressions, dot vs bracket property access, optional chaining with ?., ?.[] and ?.(), function and method calls, losing this, and new.
kvi5hnuCode Sprout team member9 minUnpack values from arrays and objects in one line: array and object patterns, skipping, rest elements, default values (and why null skips them), renaming, computed keys, nested patterns, swapping, destructuring in loops and function parameters, assignment without declaration, and common errors.
kvi5hnuCode Sprout team member6 minWhere a variable is visible and why: lexical scope and the scope chain, block, function, module and global scope, shadowing, switch-case and loop scopes, the temporal dead zone explained with every case that throws, and how scope sets up closures.
kvi5hnuCode Sprout team member7 minHow the old var keyword works and why you still need to understand it: function scope instead of block scope, hoisting of var and function declarations (and what "hoisting" really means), redeclaration, var in loops and the classic closure bug, IIFEs, and how to modernize var code safely.
kvi5hnuCode Sprout team member6 minHow to declare variables the modern way: let vs const and when to use each, initialization, why const objects can change, loop variables, redeclaration and shadowing errors, naming conventions that professional codebases follow, and the mistakes beginners make most.
kvi5hnuCode Sprout team member6 minWhat happens when an object meets +, ==, < or a template literal: the three hints (string, number, default), the valueOf/toString order, how arrays, dates and plain objects convert, writing your own conversions with Symbol.toPrimitive, and when custom conversions are a bad idea.
kvi5hnuCode Sprout team member6 minWhy "3" - 1 is 2 but "3" + 1 is "31", how +, arithmetic, comparison and == coerce their operands, the loose equality algorithm step by step (and why [] == ![] is true), when == is acceptable, and how to keep coercion from biting you.
kvi5hnuCode Sprout team member7 minThe complete guide to explicit conversions: the full conversion table, Number() vs parseInt() vs parseFloat() (and why ["1","2","3"].map(parseInt) breaks), radixes, toString(2), toFixed, toPrecision, toExponential, the unary + shortcut, and why you should never use new Number or new String.
kvi5hnuCode Sprout team member7 minWhy changing a copied object changes the original, what "pass by sharing" means for function arguments, why const objects can still change, comparing objects by identity vs by content, shallow copies with spread, deep copies with structuredClone, and why JSON cloning loses data.
kvi5hnuCode Sprout team member6 minWhat the global object is, what lives on it, why it's window in browsers, global in Node.js and self in workers, how globalThis unifies them, which declarations become global properties (var yes, let no), how modules change the picture, and why polluting globals causes bugs.
kvi5hnuCode Sprout team member7 min