JavaScript localStorage Explained
How to save data in the browser so it survives a refresh: setItem and getItem, storing objects with JSON, and the corrupted-value…
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.
11 guides
How to save data in the browser so it survives a refresh: setItem and getItem, storing objects with JSON, and the corrupted-value…
Every array method worth knowing, grouped by what you are trying to do, with a one-line example each and a clear table…
How to request data with fetch, read a JSON response, send data with POST, handle errors properly, and show a loading state.
Why some code finishes later, what a promise is, and how async/await lets you write waiting code that still reads top to…
How to react to clicks, typing and form submissions. Event listeners, the event object, preventDefault, and delegation for elements that do not…
How to select elements, change text and styles, add and remove elements, and why your script sometimes cannot find anything on the…
How objects store labelled data, dot versus bracket access, destructuring, spreading, and how to avoid the "cannot read properties of undefined" error.
Creating arrays, adding and removing items, and the three methods you will use constantly — map, filter and reduce — explained with…
Function declarations, expressions and arrow functions — what the differences are, when each is right, and how callbacks fit in.
Which keyword to use and why. Scope, hoisting, reassignment versus mutation, and why const objects can still be changed.
What JavaScript is, where it runs, and the core syntax you need. Includes a first script you can run in your browser…
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.