
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
2K+ Views
Suppose, we have an array of objects like this −const people = [ {"id":1, "name":"Andrew", "age":30, "gender":"m", "category":"G"}, {"id":2, "name":"Brandon", "age":25, "gender":"m", "category":"G"}, {"id":3, "name":"Christine", "age":20, "gender":"m", "category":"G"}, {"id":4, "name":"Elena", "age":29, "gender":"W", "category":"M"} ];We are required to write a JavaScript function that takes in one ... Read More

AmitDiwan
309 Views
We are required to write a JavaScript function that takes in an array, a start index and an end index. The function should reverse the portion of the array between the start index and end index.For example −If the array is −const arr = [2, 6, 5, 8, 3, 5, ... Read More

AmitDiwan
250 Views
In Mathematics, the symmetric difference of two sets, say A and B is represented by A △ BAnd it is defined as the set of all those elements which belongs either to A or to B but not to both.For example −const A = [1, 2, 3, 4, 5, 6, ... Read More

AmitDiwan
951 Views
We are required to write a JavaScript function that takes in a nested array of Numbers and returns the sum of all the numbers present in the array.Let’s say the following is our nested array −const arr = [2, 5, 7, [ 4, 5, 4, 7, [ ... Read More

AmitDiwan
122 Views
We are required to write a JavaScript function that takes in a number, sums its digits and checks whether that sum is a Palindrome number or not. The function should return true if the sum is Palindrome, false otherwise.For example, if the number is 697, Then the sum of its ... Read More

AmitDiwan
213 Views
We are required to write a JavaScript function that accepts an array of Numbers and a number, say n (n must be less than or equal to the length of array). And our function should replace the kth element from the beginning with the nth element from the end of ... Read More

AmitDiwan
391 Views
Given a string S, consisting of alphabets, numbers and special characters. We need to write a program to split the strings in three different strings S1, S2 and S3, such that −The string S1 will contain all the alphabets present in S, The string S2 will contain all the numbers ... Read More

AmitDiwan
4K+ Views
Suppose, we have an object like this −const dataset = { "diamonds":77, "gold-bars":28, "exciting-stuff":52, "oil":51, "sports-cars":7, "bitcoins":40 };We are required to write a JavaScript function that takes one such object and returns an array of objects that have keys and their values splitted.Therefore, for ... Read More

AmitDiwan
776 Views
We are required to write a JavaScript function that takes in a string and returns the character from the string that appears for second most number of times.Let’s say the following is our string −const str = 'This string will be used to calculate frequency';Above, the second most frequent character ... Read More

AmitDiwan
164 Views
We are required to write a JavaScript function that takes in an array of strings and deletes each one of the two strings that ends with the same character −For example, If the actual array is −const arr = ['Radar', 'Cat' , 'Dog', 'Car', 'Hat'];Then we have to delete one ... Read More