Nikitasha Shrivastava has Published 194 Articles

Merge duplicate and increase count for each object in array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 19:09:39

1K+ Views

The problem statement says to merge duplicate elements and increase the count for every object present in the array and implement this program in javascript. Understanding the Problem To start coding we need to understand the basic functionality of the javascript functions. Predefined functions in JavaScript will complete ... Read More

Merge and group object properties in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 19:06:32

672 Views

In the given problem, we have to merge and group object properties with the help of javascript. In this article you will learn how to merge and group the same type of properties in javascript. Understanding the Problem We are required to create a javascript method that will ... Read More

How to sort an array of objects based on the length of a nested array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:59:58

3K+ Views

This problem statement is saying to sort an array of objects based on the length of the nested arrays in it. For example if the first nested array has 3 elements and the second array has 2 elements then put the second array in first place and the first array ... Read More

How to get single array from multiple arrays in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:56:17

3K+ Views

In this problem we will understand how to get a single array from multiple arrays and different ways to solve this problem. We will use three methods to solve this problem: the first method is with the help of the spread operator, second concat method and finally last ... Read More

Grouping data to month wise in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:50:12

901 Views

In the given problem statement we have to group the given data month wise. In simple terms the data should be in sorted form after grouping them month wise. For example we have years and months given in data so it should be visible in the order from January to ... Read More

Get average of every group of n elements in an array JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:28:38

1K+ Views

In the given problem, we have to find out the average of every group of n elements in the array. If there are m elements in the array, then calculate the average of every group and show the result in array form. Understanding the Problem Suppose we ... Read More

Counting duplicates and aggregating array of objects in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:20:31

2K+ Views

The Given problem is stating to count the duplicates of array elements and then aggregating objects in a new array. Understanding the Problem Problem statement is saying to identify the duplicate elements from an array and make a single array of those objects stating the counts. To ... Read More

Adding binary strings together JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:12:15

2K+ Views

The problem is stating that we have to add two binary strings. Binary strings are a sequence of bytes. To add them in javascript, we will first convert them to decimal and calculate the sum. After adding those decimal numbers, we will convert it again into binary strings and print ... Read More

Sum up a number until it becomes one digit - JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 17:04:13

1K+ Views

In the given problem statement we are presented with a number and we have to sum up the given number until it becomes one digit and implement the code in Javascript for getting the required sum. Understanding the Problem In the given program we will have a ... Read More

Sum of even Fibonacci terms in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 17:02:26

559 Views

In the given problem statement we have to calculate the sum of even fibonacci numbers with the help of Javascript functionalities. So for solving this task we will use basic functionalities of the language. Understanding the Problem The problem at hand is to calculate the sum of even ... Read More

Previous 1 ... 7 8 9 10 11 ... 20 Next
Advertisements