JavaScript

You can find these contents on other websites and publications. When you click any of the contents, a new tab will open, navigating you to the appropriate content or profile.

113

JavaScript Get Request – How to Make an HTTP Request in JS

This article will teach you how to request data from your servers by making a GET request. You will learn the popular methods that exist currently and...

JavaScript Range – How to Create an Array of Numbers with .from() in JS ES6

In this article, you will learn what the .from() static method is all about, how it works, and how you can create a range of numbers in JavaScript.

JavaScript Type Checking – How to Check Type in JS with typeof()

In this article, you will learn how to use the typeof operator, instances when you should not use typeof, and the best way to check type in JavaScript...

JavaScript String to Boolean – How to Parse a Boolean in JS

In this article, you will learn how to convert a string to a boolean value using different methods in JavaScript.

JS Check for Null – Null Checking in JavaScript Explained

This article will teach you how to check for null, along with the difference between the JavaScript type null and undefined.

How to Check if an Object is Empty in JavaScript – JS Java isEmpty Equivalent

In JavaScript, there are various ways you can check if an object is empty. In this article, you will learn the various ways you can do this, the optio...

How to Declare an Array in JavaScript – Creating an Array in JS

There are two standard ways to declare an array in JavaScript. These are either via the array constructor or the literal notation. In this article, yo...

JS Copy an Object – How to Clone an Obj in JavaScript

In this article, you will learn three methods that you can use to do this. You will also learn what deep and shallow clones mean and how they work.

SOLID Principles for Programming and Software Design

In this article, you will learn what these principles stand for and how they work using JavaScript examples.

How to Format a Number as Currency in JavaScript

In this article, I will help you understand each of the above options, what they do, and how to properly use this method to format a number as currenc...

A Thorough Guide To JavaScript Array Methods with Examples

In this article, you will learn what is an array in JavaScript, how to create an array in JavaScript, how to remove items from an array, how to sort a...

JavaScript Localization: A Step by Step Guide

In this article, we will learn how to do this in two ways: file-based translation, in which we use Transifex to get these translations and use them in...

String Equality in JavaScript – How to Compare Strings in JS

In JavaScript, you can compare strings based on their value, length, character case, and lots more. In this article, you will learn how to compare str...

Comparing Arrays in JavaScript – How to Compare 2 Arrays in JS

In this article, you will learn the various ways you can compare two arrays in JavaScript to see if they are similar or not.

How to Copy Text to the Clipboard with JavaScript

In this article, you will learn how to write (copy) text and images to the clipboard with the Clipboard API.

How to Fix TypeError: Cannot read Property push of Undefined in JavaScript

In this article, you will learn how to fix the "Cannot read properties of undefined" error, which occurs when you attach these array methods to variab...

How to Swap Two Array Elements in JavaScript – Switch Elements in JS

This article will teach you three approaches: using a temporary variable, destructuring, and the using the splice() array method.

Graphery SVG (gySVG): An introduction

Graphery SVG, usually referred to as gySVG is a small, but powerful library used to simplify the construction and manipulation of SVG graphics from Ja...

What’s new in npm v7

October 13th, 2020 was a Happy release Tuesday for the npm CLI team, which officially released npm@7.0.0 after several months of hard work.

Web animations with HTML, CSS, and JavaScript

In this article, I will be showing you some animations that can be achieved with HTML, CSS, and JavaScript.