Nikitasha Shrivastava has Published 196 Articles

Sorting strings with decimal points in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:59:45

1K+ Views

In this problem statement, our aim is to sort strings with decimal points with the help of Javascript functionalities. So for doing this task we will use the sort and map method of Javascript. Understanding the problem statement The problem statement is to write a function in Javascript by which ... Read More

Sorting odd and even elements separately JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:56:32

639 Views

In our problem statement we have to sort odd and even elements separately with the help of Javascript functionalities. So for doing this task we will use for loops and bubble sort for sorting odd and even numbers separately. Understanding the problem statement The problem statement is to write a ... Read More

Sorting numbers according to the digit root JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:54:54

160 Views

In this problem statement, our task is to sort numbers according to the digit root and implement this problem with the help of Javascript functionalities. So we can solve this problem with the help of loops in Javascript. What is digit root? The digit root of a given number is ... Read More

Round number down to nearest power of 10 JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:52:47

626 Views

In the provided problem statement, our task is to write the function for partial sum in an array of arrays with the help of Javascript. So here we will be given a variety of arrays and we need to compute the sum of each row and show the result. Understanding ... Read More

Reversing the words within keeping their order the same JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

695 Views

In this problem statement, our aim is to reverse the words within keeping their order in the same order with the help of Javascript functionalities. So for solving this problem we can use traditional for loops and also built-in methods or Javascript. Understanding the problem statement The problem statement is ... Read More

Reversing array without changing the position of certain elements JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:46:44

415 Views

In this problem statement, our aim is to write the function for reversing the array without changing the position of certain elements with the help of Javascript. So for doing this task we will be keeping track of the indexes of the preserved elements. . Understanding the problem statement The ... Read More

Return the element that appears for second most number of times in the array JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:41:47

87 Views

In the given problem statement, our task is to return the element that appears for the second most number of times in the array with the help of Javascript. So to solve this problem we will use map function to count the frequency of every element. Understanding the problem statement ... Read More

Remove number from array and shift the remaining ones JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:38:02

97 Views

In this problem statement, our task is to write a function to remove numbers from the array and shift the remaining elements with the help of Javascript functionalities. So we will use basic for loop to remove one element from the array and shift the remaining elements to get the ... Read More

Recursive loop that prints an inverted count in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:36:10

309 Views

In the given problem statement, we have to print an inverted count with a recursive loop and code with the help of Javascript. So basically we have to print the count in inverted count or we can say in descending order. What is Recursive technique ? The recursive technique ... Read More

Random whole number between two integers JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:33:53

143 Views

In the given problem statement, we have to find the whole number between two integers with the help of Javascript functionalities. So for doing this task we can use some in-built functions of javascript and also for loop to get the required result. Understanding the problem statement The problem statement ... Read More

Advertisements