Check if string contains a substring in JavaScript
When we create a string searching utility, for example, what we are actually trying to accomplish under the hood is to check if a string contains a substring. There are…
Continue readingWhen we create a string searching utility, for example, what we are actually trying to accomplish under the hood is to check if a string contains a substring. There are…
Continue readingWhen writing our code, we calculate values and, most times, we need to store them in memory locations for future use. That is why we need variables. In Javascript, we…
Continue readingThis article will discuss how to loop through an array of objects in JavaScript. We will use several methods made available to us by JavaScript. Use a while loop to…
Continue readingIn this article, we will consider the different ways we can remove elements from a JavaScript array. An array provides a way to hold a collection of items in one…
Continue readingHow can we concatenate arrays in javascript? Arrays are an important data structure in javascript. An array is an ordered collection of elements that can be accessed by its index…
Continue readingIn this tutorial, we will show how to validate emails in JavaScript. You’ve probably written a frontend where your user needed to either register for or log in to, an…
Continue readingDid you get the JavaScript function not defined when you ran the code? Or looking for how to fix the JavaScript error? As a programmer, it’s common to come across…
Continue readingFor many of you, JavaScript is the very first language to get started with. Looking for how to get JavaScript array length? In this tutorial, you will learn how to…
Continue readingWorking with JavaScript arrays is fun. But what if we want to get the last element of an array? Maybe the last 2 or the last 3 elements of an…
Continue readingWant to clear an Array in JavaScript? Or looking for ways to empty Array? This quick tutorial will show you different ways to clear Array in JS. The easiest way…
Continue readingLooking for calculating JavaScript square root? In this quick tutorial, you will learn how to find the square root of a number in JavaScript. In, the previous JavaScript tutorial we…
Continue readingHi, need help! how to run Javascript, code or program in Visual Studio Code? Visual Studio Code (VSC) is one of the most popular and widely used code editors used…
Continue reading