Difference between Local Storage and Cookies

In this article, we discuss what is the difference between Local storage and Cookies and which one should we use in our client-side code. In web development, the two fundamental concepts play a crucial role in enhancing the user experience & enabling dynamic content delivery that is Local Storage and Cookies.     Both LocalIn this article, we discuss what is the difference between Local storage and Cookies and which one should we use in our client-side code. In web development, the two fundamental concepts play a crucial role in enhancing the user experience & enabling dynamic content delivery that is Local Storage and Cookies.     Both Local […]

Read More…

Sort array on multiple fields using JavaScript

Sorting, filtering, and searching are very common scenarios during development. In this article, I show you how to sort array on multiple fields using JavaScript.  Suppose you have an array of objects that contains several columns/fields. Now you have to sort the array on multiple fields like on Title and Date. The date would beSorting, filtering, and searching are very common scenarios during development. In this article, I show you how to sort array on multiple fields using JavaScript.  Suppose you have an array of objects that contains several columns/fields. Now you have to sort the array on multiple fields like on Title and Date. The date would be […]

Read More…

Map function in JavaScript

In this tutorial, we learn how to use the map function in JavaScript to manipulate arrays. The map function is one of the most commonly used functions to manipulate array elements. The map() method iterates an array and modifies the array elements using the callback method and returns the new array. Learn How to useIn this tutorial, we learn how to use the map function in JavaScript to manipulate arrays. The map function is one of the most commonly used functions to manipulate array elements. The map() method iterates an array and modifies the array elements using the callback method and returns the new array. Learn How to use […]

Read More…

Check if value exists in array JavaScript ES6

While writing code it is often seen that when we have to find out whether a value array may exist or not. In Javascript, there are several ways to check whether a particular value exists in the array. In this tutorial, I show you all the possible ways to check if a value exists inWhile writing code it is often seen that when we have to find out whether a value array may exist or not. In Javascript, there are several ways to check whether a particular value exists in the array. In this tutorial, I show you all the possible ways to check if a value exists in […]

Read More…

JavaScript Array Filter

In this tutorial, we learn how to use the JavaScript array filter method to filter an array in JavaScript based on some conditions. Introduction to JavaScript Array filter This is a very common situation as a developer you have come across to manipulate array items.  Based on the condition you have to fetch and createIn this tutorial, we learn how to use the JavaScript array filter method to filter an array in JavaScript based on some conditions. Introduction to JavaScript Array filter This is a very common situation as a developer you have come across to manipulate array items.  Based on the condition you have to fetch and create […]

Read More…

Compare location.href vs location.replace vs location.assign and window.open

During client-side development, you come across the situation where you have to redirect from one webpage to another webpage. Javascript provides several ways to redirect to a page and below properties/method are used to redirectDuring client-side development, you come across the situation where you have to redirect from one webpage to another webpage. Javascript provides several ways to redirect to a page and below properties/method are used to redirect […]

Read More…