Actualités

A callback function is a function that is passed as an argument to another function and is called by that function at some point. The callback function can be defined as a regular function, an ...
async function getStarWarsData() { try { const response = await fetch('https://swapi.dev/api/people/1/'); const data = await response.json(); console.log(data ...
While functions are part of just about every programming paradigm, including JavaScript, a functional programmer has unique considerations to approach and use functions. This tutorial explains what is ...
In this book, you will find how to use JavaScript as a functional programming language. It turns out that JavaScript has everything it needs to be used as a functional language. We just have to remove ...
Here's how to write JavaScript statements ... and they can also be used to declare classes and functions. Unlike properties, methods, and events, which are inseparable from the object that ...
Wrap your promise with the fa function, and provide error types you want to catch, and you'll receive an array you can unpack to those values. If error types are ...