JavaScript Fetch API: Getting Data From the Internet
How to request data with fetch, read a JSON response, send data with POST, handle errors properly, and show a loading state.
Try: python lists, javascript functions, syntax error, first project
Every guide on the site, newest first. Explanations, projects and fixes written in plain English.
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…
Defining functions, parameters and defaults, keyword arguments, return values, scope, docstrings and when to split code into functions.
Dictionaries store labelled values. Here is how to create, read, update and loop over them, plus how to avoid the KeyError that…
Creating lists, indexing, slicing, adding and removing items, sorting, and the copy trap that catches every Python beginner at least once.
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.