Working with the DOM in JavaScript
Find elements, change them, create them and respond to events — the practical DOM toolkit, plus event delegation and the performance trap…
Try: python lists, javascript functions, syntax error, first project
How JavaScript actually works in the browser. Variables, functions, the DOM, events and async code, explained with examples you can paste into a console.
40 guides
Find elements, change them, create them and respond to events — the practical DOM toolkit, plus event delegation and the performance trap…
Hooks let function components hold state and respond to changes. useState and useEffect with working examples, the rules that trip everyone, and…
The event loop, callbacks, promises and async/await — what actually happens when JavaScript waits, and the four mistakes that cause most async…
React is a library for building interfaces; Next.js is a framework built on React that adds routing, server rendering and a build…
A promise is a value that is not ready yet. How to create one, chain them, handle errors, run several at once,…
typeof, instanceof, Array.isArray and Object.prototype.toString — what each is good for, why typeof null lies, and when to move to TypeScript.
require is CommonJS; your code is running as an ES module or in a browser, where it does not exist. Which situation…
XSS, CSRF, dependency risk, token storage and prototype pollution — the JavaScript vulnerabilities that matter, in the browser and in Node.
What a framework actually does for you, how React, Vue, Svelte and Angular differ, and how to tell whether you need one…
What the double exclamation mark actually does in JavaScript, why it is not an operator, when it is genuinely useful, and when…
TypeScript is JavaScript with types checked before the code runs. What that buys, what it costs, and a clear answer on learning…
The JavaScript features added since 2015 that changed how the language is written: let and const, arrow functions, destructuring, modules, async/await and…
Related topics
The fastest way to improve is to read one guide, then build the thing it describes. Start with the basics, or jump straight to a project.