Results for: "JavaScript"
Contents (348)
How do you stop JavaScript execution for a while: sleep()
A sleep() function is a function that allows you to stop the execution of code for a certain amount…
read more
Mastering array sorting in JavaScript: a guide to the sort() function
In this article, I will explain the usage and potential of the sort() function in JavaScript. What does the sort() function…
read more
Optimizing the Robots.txt file for Google
The Robots.txt file serves to give information to Googlebot and other robots that crawl the Internet about the pages and…
read more
How to download any video from any website
Updated November 2026. This guide was last revised in 2023, and a lot has changed since then: youtube-dl hasn't shipped…
read more
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
Sorting elements with SortableJS and storing them in localStorage
SortableJS is a JavaScript extension that you will be able to use in your developments to offer your users the…
read more
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, also known as template literals, appeared in JavaScript in its ES6 version, providing a new method of declaring…
read more
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 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
What are javascript symbols and how can they help you?
Symbols are a new primitive value introduced by ES6. Their purpose is to provide us unique identifiers. In this article,…
read more
Callbacks in JavaScript
Callback functions are the same old JavaScript functions. They have no special syntax, as they are simply functions that are…
read more
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
How to make your own custom cursor for your website
When I started browsing different and original websites to learn from them, one of the first things that caught my…
read more
Node.js and npm: introductory tutorial
In this tutorial we will see how to install and use both Node.js and the npm package manager. In addition,…
read more
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
When programming with JavaScript there are certain conventions that you should apply, especially when working in a team environment. In…
read more
How to set up your own free web server with XAMPP
Nowadays anyone can create their own website easily and free of charge. Whether through a CMS (such as WordPress) or…
read more
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
In this article we are going to see what they are and how to use JavaScript Arrow Functions, a new…
read more
How to insert an element into an array with JavaScript
In this brief tutorial you will learn how to insert one or more elements into an array with JavaScript. For this…
read more
What is the difference between primitives types and objects in JavaScript?
In this short tutorial we are going to look at the differences between primitive types and objects in JavaScript. To…
read more
How to get DOM elements with JavaScript
When you access any element of the DOM, it is usual to save it in a variable. This is something…
read more
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 synchronize the scroll of two divs with JavaScript
In case you have two divs of different sizes you may sometimes want to scroll both at the same time…
read more
What is a Full Stack Developer?
The demand for the Full Stack Developer is growing exponentially in recent years. Disruptive technology companies and startups are increasingly requesting…
read more
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
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
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
The charAt method is accepted by strings in JavaScript, returning the position of the character passed as a parameter within…
read more