Find the min/max element of an Array using JavaScript
Finding the minimum or maximum element of an array in JavaScript involves determining the smallest or largest value from the array’s elements. This operation is crucial for various tasks, such as data analysis, optimization problems, and comparisons within algorithms....
read more
Learn Data Structures with Javascript | DSA using JavaScript Tutorial
JavaScript (JS) is the most popular lightweight, interpreted compiled programming language, and might be your first preference for Client-side as well as Server-side developments. But have you thought about using Javascript for DSA? Learning Data Structures and Algorithms can be difficult when combined with Javascript. For this reason, we have brought to you this detailed DSA tutorial on how to get started with Data Structures with Javascript from scratch....
read more
Convert string into date using JavaScript
In this article, we will convert a string into a date using JavaScript. A string must follow the pattern so that it can be converted into a date....
read more
How to remove all line breaks from a string using JavaScript?
Line breaks in strings vary from platform to platform, but the most common ones are the following:...
read more
How to count string occurrence in string using JavaScript ?
In JavaScript, we can count the string occurrence in a string by counting the number of times the string is present in the string....
read more
Implementation of Priority Queue in Javascript
Priority Queue is an extension of Queue having some properties as follows:...
read more
How to validate HTML tag using Regular Expression
Given string str, the task is to check whether it is a valid HTML tag or not by using Regular Expression.The valid HTML tag must satisfy the following conditions:...
read more
How to convert Map keys to an array in JavaScript ?
We are given a Map and the task is to get the keys of the map into an array using JavaScript. We can access the keys by using the Map keys() method....
read more
Check if a string is a valid JSON string using JavaScript
We will be given a string and we need to validate whether the given string is a valid JSON string or not. JSON string is the same as a javaScript object and it must follow the syntax of that object. If the syntax is correct then we have to return true or we have to return false....
read more
How to Sort Numeric Array using JavaScript ?
In JavaScript, where arrays and their manipulation form the backbone of many operations. One such operation is sorting, and JavaScript provides a built-in method, Array.sort(), to help us with that....
read more
How to remove text from a string in JavaScript ?
We will have a string and we need to remove the given text from that string using JavaScript. We need to print the new string in the console....
read more
How to remove multiple elements from array in JavaScript ?
Given an array containing array elements, the task is to remove multiple elements from the array using JavaScript. The indexes of elements are given that need to be removed from the JavaScript array....
read more