Results for: "method"

Contents (381)

Infinite scrolling with native JavaScript using the Fetch API
Infinite scrolling with native JavaScript using the Fetch API

I have long wanted to talk about how infinite scroll functionality can be implemented in a list of items that…

read more
What is a JWT token and how does it work?
What is a JWT token and how does it work?

JWT tokens are a standard used to create application access tokens, enabling user authentication in web applications. Specifically, it follows…

read more
Template Literals in JavaScript
Template Literals in JavaScript

Template literals, also known as template literals, appeared in JavaScript in its ES6 version, providing a new method of declaring…

read more
A Step-by-Step Process to Using Artificial Intelligence as a Startup
A Step-by-Step Process to Using Artificial Intelligence as a Startup

Unsurprisingly, artificial intelligence is an industry buzzword that continues to grow in popularity as the months go by. The reason…

read more
What is Gzip compression and what is it used for?
What is Gzip compression and what is it used for?

GZIP compression allows you to compress the resources of a web page before they are served to the users' browsers…

read more
How to fix excessive MySQL CPU usage
How to fix excessive MySQL CPU usage

What happens if we realise that a series of databases that we thought were optimised through the use of indexes,…

read more
How to use the endsWith method in JavaScript
How to use the endsWith method in JavaScript

In this short tutorial, we are going to see what the endsWith method, introduced in JavaScript ES6, is and how…

read more
How to create PDF with JavaScript and jsPDF
How to create PDF with JavaScript and jsPDF

Creating dynamic PDF files directly in the browser is possible thanks to the jsPDF JavaScript library. In the last part of…

read more
Misinformation also attacks Wikipedia
Misinformation also attacks Wikipedia

Wikipedia contains over 55 million articles in more than 300 languages spoken worldwide. In just 21 years, Wikipedia has become…

read more
PHP - The Singleton Pattern
PHP - The Singleton Pattern

The Singleton Pattern is one of the GoF (Gang of Four) Patterns. This particular pattern provides a method for limiting…

read more
How to connect to MySQL with Node.js
How to connect to MySQL with Node.js

Let's see how you can connect to a MySQL database using Node.js, the popular JavaScript runtime environment. Before we start, it…

read more
JavaScript Programming Styles: Best Practices
JavaScript Programming Styles: Best Practices

When programming with JavaScript there are certain conventions that you should apply, especially when working in a team environment. In…

read more
Difference between arrow and normal functions in JavaScript
Difference between arrow and normal functions in JavaScript

In this tutorial we are going to see how arrow functions differ from normal JavaScript functions. We will also see…

read more
JavaScript Arrow functions: What they are and how to use them
JavaScript Arrow functions: What they are and how to use them

In this article we are going to see what they are and how to use JavaScript Arrow Functions, a new…

read more
How to reverse an array in JavaScript
How to reverse an array in JavaScript

In this tutorial we are going to see how you can change the order of the elements of an array…

read more
How to use the codePointAt method in JavaScript
How to use the codePointAt method in JavaScript

The JavaScript codePointAt method has more or less the same function as the charCodeAt method, used to get the 16-bit…

read more
How to check if a value is a number in JavaScript
How to check if a value is a number in JavaScript

In this short tutorial we are going to look at the various methods that exist to find out if a…

read more
How to use the charCodeAt method in JavaScript
How to use the charCodeAt method in JavaScript

The charCodeAt method is accepted by strings in JavaScript, returning the 16-bit Unicode code of the character at the position…

read more
How to use the charAt method in JavaScript
How to use the charAt method in JavaScript

The charAt method is accepted by strings in JavaScript, returning the position of the character passed as a parameter within…

read more
Strings in JavaScript: What they are and how to use them
Strings in JavaScript: What they are and how to use them

In this tutorial we are going to explain what strings are and how they are used in JavaScript. The tutorial…

read more
Dates in local format with Javascript
Dates in local format with Javascript

In the articles we have about dates in JavaScript we were missing one about how to create dates in local…

read more
Formatting hours in Javascript
Formatting hours in Javascript

Continuing with the set of articles that talk about internationalisation elements, like the previous one where we talked about relative…

read more
Request data with prompt in JavaScript
Request data with prompt in JavaScript

After having published several articles about how to manipulate arrays and dates, today I will publish a post that some…

read more
Relative dates in JavaScript
Relative dates in JavaScript

One of the interesting things about the internationalisation library represented in the Int object is the…

read more
How to access webcam and grab an image using HTML5 and Javascript
How to access webcam and grab an image using HTML5 and Javascript

We often use webcams to broadcast video in real time via our computer. This broadcast can be viewed, saved and…

read more
The JavaScript forEach loop
The JavaScript forEach loop

We have already talked about how to handle some of loops  types in Javascript including for, for-in and for-off loops. In…

read more
What are React Hooks and what problems they solve
What are React Hooks and what problems they solve

Working with React, - and before the release of Hooks in version 16.8 -  there was always the possibility to create…

read more
Flattening arrays in JavaScript
Flattening arrays in JavaScript

When we are handling arrays that are arrays or have multiple dimensions it can be very useful to know how…

read more
How to populate an array with random numbers in JavaScript
How to populate an array with random numbers in JavaScript

Some of you might think that what we explained in the article on how to populate an array with numbers,…

read more
How to populate an array with numbers in JavaScript
How to populate an array with numbers in JavaScript

Populate an array with numbers in JavaScript The first step is to initialise the array. So today we are going to…

read more