Nikitasha Shrivastava has Published 196 Articles

JavaScript - How to create nested unordered list based on nesting of array?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:37:59

2K+ Views

In this problem statement, our task is to to create a nested unordered list based on nesting of arrays with the help of Javascript. So for doing this task we will use a function to call recursively for each nested array and create a new unordered list.. Understanding the problem ... Read More

Implementing counting sort in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:35:46

898 Views

In the given task, our aim is to create a counting sorting technique and implement this problem with the help of Javascript functionalities. What is the Counting Sort? The counting sort is a process for sorting a data set of objects as per the keys. It works by counting ... Read More

How to write the factorial function with reduce and range in JavaScript?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:33:58

692 Views

In this problem statement, our aim is to write the factorial function with reduce and range with the help of Javascript. So basically range and reduce are the predefined functions of Javascript. What is the use of reduce and range functions in Javascript ? In Javascript the reduce and range ... Read More

How to get the number of days between two Dates in JavaScript?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:13:23

717 Views

In the given problem statement we will write a function to calculate the days between the given dates with the help of Javascript functionalities. For solving this problem we will use some built in method of Javascript and mathematical operations. Understanding the problem statement In the given problem we have ... Read More

How to find distance between items on array JavaScript?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:08:45

963 Views

In this problem statement, our aim is to find the distance between items on an array with the help of Javascript. So for doing this task we will use a loop and a variable to store the id for each object in the JSON object. Understanding the problem statement The ... Read More

Given an array of integers, find the pair of adjacent elements that has the largest product and return that product JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:01:36

1K+ Views

Our work in this problem statement is to find the pair of adjacent elements that has the largest product and return the product if we have given an array. And we have to implement this problem with the help of Javascript functionalities. Logic for the given problem In the ... Read More

Get key from value in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:00:10

2K+ Views

In the given problem statement we have to write a function which will help to get the key of the given value with the usage of Javascript functionalities. So basically in Javascript if we want to access the keys or value from the given object we can access it by ... Read More

Get all substrings of a string in JavaScript recursively

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 13:53:48

2K+ Views

In the provided problem statement, our aim is to get all substrings of a string recursively with the help of Javascript. So here we will be creating a recursive function that can generate all possible substrings of a given input string. Understanding the problem statement The problem statement is asking ... Read More

Function to reverse a string JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 13:51:03

378 Views

In this problem statement, our target is to print the n consecutive odd numbers and implement this problem with the help of Javascript functionalities. So we can solve this problem with the help of loops in Javascript. Understanding the problem statement The given problem is stating that we have given ... Read More

Function to find out palindrome strings JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 13:39:42

109 Views

In this problem statement, our aim is to create a function to find out that the given string is palindrome with the help of Javascript functionalities. So for solving this problem first we need to understand the problem in simple terms. Understanding the problem statement We have given a string ... Read More

Advertisements