TL;DR: Use the add() method on element.classList
The difference between running code synchronously or asynchronously
When is it a good idea to use Node.js over other technologies? Why Node.js and not another solution? This post aims to answer that question.
Discover how to save a JSON object to file in Node.js, and retrieve it later
Discover how to find out if a Date object represents a today datetime
Discover how to retrieve the last updated date of a file with Node.js
Using async/await combined with map() can be a little tricky. Find out how.
Discover how to remove a file from the filesystem with Node.js
Discover how create an empty file in a filesystem folder in Node.js
How to make your earnings not depending on the hours you work, but to the number of products sold
Every HTTP response comes with a status code that signals with a clear number information about how the request was processed
A detailed description of the caching options available through the HTTP protocol
curl is an awesome tool that lets you create network requests from the command line
The HTTPS protocol is an extension of HTTP, the Hyper Text Transfer Protocol, that provide secure communication
A detailed description of how the HTTP protocol, and the Web, work
RFCs, Request for Comments, are publications from the technology community
95 people on 100 will never get back to your blog. They just found it by chance. Give them a reason to stay in touch.
Discover how to create a multiline string
Some nice podcasts to listen to while commuting or in general when you are away from keyboard
Given an array of objects, here's what you can do if you want to get the values of a property, but not duplicated.
Your product must meet the needs of a niche, solving a problem
How to check if a file exists in the filesystem using Node.js, using the `fs` module
Is remote working making you a more effective developer? A happier developer? How can you improve?
Learn how to set up different configurations for production and development environments
Define your niche, your tribe. Those who belong to that tribe will strive to buy your product or at least will be strongly attracted, because it is specially made for them
How to use the `Response.cookie()` method to manipulate your cookies
How to allow cross site requests by setting up CORS
How to manage storing and handling files uploaded via forms, in Express
Ideas are worthless. Execution plus idea is everything.
How to process forms using Express
Learn how to access and change HTTP headers using Express
How to set up HTTPS using the popular free solution Let's Encrypt
A middleware is a function that hooks into the routing process, and performs some operation at some point, depending on what it want to do.
Having a purpose is a high-motivating factor to overcome challenges
How to redirect to other pages server-side
Found out how to retrieve the POST query parameters using Express
The events module of Node.js provides the EventEmitter class
The os module of Node.js provides useful functions to interact with underlying system
Get this guide to the Express framework that lets you build awesome Web Applications using Node.js!
As a product business, anything you ship creates value
A handy reference to all the request object properties and how to use them
Learn how to terminate a Node.js app in the best possible way
Learn how to read and make use of environment variables in a Node.js program
How to use the Pug templating engine
How to create a self-signed HTTPS certificate for Node.js to test apps locally
A solo-owned product business can provide one of the highest levels of freedom
How to handle errors during the execution of a Node.js application
Routing is the process of determining what should happen when a URL is called, or also which parts of the application should handle a specific incoming request.
Express provides a handy method to transfer a file as attachment: `Response.download()`
A developer knowing marketing has a powerful combination of skills
How to send a response back to the client using Express
How to use sessions to identify users across requests
How to serve JSON data using the Node.js Express library
The only way to have control over your future is to have your own business
How to serve static assets directly from a folder in Express
Express is capable of handling server-side template engines. Template engines allow us to add data to a view, and generate HTML dynamically.
Learn how to validate any data coming in as input in your Express endpoints
MySQL is one of the most popular relational databases in the world. Find out how to make it work with Node.js
WebSockets are an alternative to HTTP communication in Web Applications. They offer a long lived, bidirectional communication channel between client and server.
The http module of Node.js provides useful functions and classes to build an HTTP server
The path module of Node.js provides useful functions to interact with file paths
What is a platform, why having your own platform is important
How to interact with folders using Node
How to interact with file descriptors using Node
How to get the details of a file using Node
How to write files using Node
How to interact with file paths and manipulate them in Node
How to read files using Node
The fs module of Node.js provides useful functions to interact with the file system
How to perform HTTP requests with Node.js using GET, POST, PUT and DELETE
How to build an HTTP server with Node.js
How to work with custom events in Node
The Node.js setImmediate function interacts with the event loop in a special way
The Node.js process.nextTick function interacts with the event loop in a special way
The Event Loop is one of the most important aspects to understand about Node
This article will help you discover how to achieve freedom
When is a package a dependency, and when is it a dev dependency?
When is a package best installed globally? Why?
How to uninstall an npm Node package, locally or globally
How to make a Node.js CLI program interactive using the built-in readline Node module
How to print to the command line console using Node, from the basic console.log to more complex scenarios
REPL stands for Read-Evaluate-Print-Loop, and it's a great way to explore the Node features in a quick way
How to accept arguments in a Node.js program passed from the command line
How you can install Node.js on your system: a package manager, the official website installer or nvm
A look back on the history of Node.js from 2009 to today
Learn what Node buffers are, what they are used for, how to use them
Find out how to extract the data sent as JSON through an HTTP request body using Node