featured Image

Merge Two Arrays and Remove Duplicates – JavaScript

An array is an ordered list of values and these values can be of any data type. Eg integer, string, boolean value or it can be a mix of all…

Read more
featured Image

Convert seconds to minutes and seconds (mm:ss) using JavaScript

In this tutorial, we will learn how to convert seconds into minutes and seconds using JavaScript. Before we code the function we have to know that is 1min = 60seconds….

Read more
featured Image

Get user location from browser using JavaScript

In this short article, we will learn how to get users’ current location of our website. If you are building any location-based website like food delivery apps etc, it becomes…

Read more
featured Image

Create Confirmation Alert Box with YES and NO options – JavaScript

In this article, we will see how to create a confirmation box with Yes Or No using JavaScript. In JavaScript, we can use the confirm() method of the window object…

Read more
featured Image

Get multiple elements by Id using JavaScript

In this short tutorial, we will learn how to select multiple elements by their Ids in JavaScript. To select multiple elements by its ids , we cannot use document.getElementById method….

Read more
featured Image

Split an array into half in JavaScript

In this post, we will learn how to divide an array into half using JavaScript. We can divide/split an array in half using the Array.splice() method. With this method, we…

Read more
featured Image

Change Background Color of a Webpage using Javascript

In this tutorial, we will see how to change the background color of the body or a div in a web-page using JavaScript. Using JavaScript, we can change any CSS…

Read more
featured Image

Change Text Color Using JavaScript with Example

In this post, we will see how to change text color in HTML using JavaScript with examples. With JavaScript, we can do DOM manipulation of HTML elements which helps us…

Read more
featured Image

Check if a HTML checkbox is checked using JavaScript

If you are looking for “How do I check if a checkbox is checked in JavaScript?” The simple answer is using checked property in JavaScript. The checked is a boolean…

Read more