JavaScript

2 Ways to Remove All Children Elements in JavaScript

There are situations when you have to remove all the children elements in javascript. Different approaches can be used to remove all the children...

2 Ways to Append Values to an Object in JavaScript

Appending values to an Object is a quite common situation when working objects in javascript. You might need to add a single value or...

How to Check if an Object is in Array in JavaScript

Working with an array of objects, checking if an object is in the array is a very common problem. A very simple solution to...

JavaScript indexOf vs findIndex – [Complete Guide with Examples]

When working with arrays, you often faced a situation where you are confused about using indexOf and findIndex. This post will help you understand...

How to Insert an Element to a Specific Index in Array in JavaScript

The array methods are confusing sometimes if you don't know which method is suitable for your situation. This article explains how to insert an...

How to Find Index of an Object in Array in JavaScript

Working with APIs of real data gives you an array of objects. You often need to find the index of an object in an...

Slice vs Splice in JavaScript – [End Your Confusion Today]

Slice and Splice are probably the most confusing array methods in JavaScript. Many experienced developers struggle to use them. This is because both of...

Add Comma as Thousand Separator to Input Field in JavaScript

If you are working with a simple website or a react application, There are 3 common situations where you have to add a comma...

Is it Worth Learning jQuery in 2023

The question "is it worth learning jQuery?" is asked by many developers. As there are tons of javascript frameworks out there, its hard to...

Latest articles