Posts from JavaScript

Count the number of words in a string in JavaScript

By Faruque Ahamed Mollick

It is quite an easy task to count the number of words in a given string with JavaScript. In this article, I will show you how to perform this task. To count words from the string, .... Read More

Change Background Color on Mouse Hover in JavaScript

By Faruque Ahamed Mollick

In this JavaScript HTML DOM tutorial, I am going to show you how we can change the background color of an element. Before we get started, let’s create an HTML element with an.... Read More

Get the ratio of two numbers in JavaScript

By Faruque Ahamed Mollick

I am again here with another JavaScript solution. In this article, you are going to see how to get the ratio between two numbers in JavaScript. Well, when we all were in high schoo.... Read More

Check if div element with class name exists in JavaScript

By Faruque Ahamed Mollick

In this tutorial, we are going to check if div element with a specific class name exists or not in JavaScript. The JavaScript program we are going to write for the browser will abl.... Read More

How to shuffle characters of a string in JavaScript

By Keshav J

In this tute, we will discuss how to shuffle characters of a string in JavaScript. Before getting into the topic, let’s see what is a string in JavaScript. The JavaScript string .... Read More

Get Maximum and Minimum value from a JavaScript Array

By Keshav J

In this tute, we will discuss how to get Maximum and Minimum value from an Array in JavaScript. Before entering into the topic, let’s see a quick recap of arrays. An array is.... Read More

How to shuffle elements of an Array in JavaScript

By Keshav J

In this tute, we will discuss how to shuffle elements of an array in JavaScript. Before getting into the topic, let’s see what is an array. An array is a special variable tha.... Read More

Get common elements from two Arrays in JavaScript

By Keshav J

In this tute, we will discuss how to get common elements between two Arrays in JavaScript. Prior to getting into the topic, let’s see what is an array. An array is a special .... Read More