JavaScript

JavaScript: 3 Ways to Remove a Property from an Object

When working with Javascript, there might be cases where it becomes necessary to remove single or multiple properties from a given object. For example, if you are creating…

How to Remove Elements from an Array in JavaScript

As a programmer, there might be scenarios where you have to remove specific elements from an array in Javascript. It is important to understand the various techniques available…

JavaScript: Convert UTC time to local time and vice versa

It is essential for web applications to display the correct time, especially when dealing with multiple time zones. This is where converting between UTC and local time comes…

JavaScript: 6 Ways to Calculate the Sum of an Array

This practical, succinct article walks you through three examples that use three different approaches to find the sum of all elements of a given array in Javascript (suppose…

JavaScript: Ways to Create New Objects from Old Objects

As a web developer, you are very likely to find yourself in need of creating new objects from old ones in Javascript when either developing complex projects or…

JavaScript: 2 Ways to Sort an Array of Objects by Property Value

Sorting data is a common task in programming and isn’t an exception in Javascript. In this article, we will discuss how to sort an array of objects by…

4 Ways to Remove Duplicates from an Array in JavaScript

When working with Javascript arrays, there are many cases where your arrays contain duplicate elements. If you want a given array to contain only unique elements, you need…

JavaScript: 5 ways to create a new array from an old array

There are multiple ways to create a true new array from an old array in modern Javascript (ES6 or beyond). Using the spread syntax (shallow copy) This method…

1 13 14 15