
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
Let’s say we have an array of object that contains the scores of some players in a card game −const scorecard = [{ name: "Zahir", score: 23 }, { name: "Kabir", score: 13 }, { name: "Kunal", ... Read More

AmitDiwan
157 Views
Let’s say, we have a series of strings, which contain and image path and order #concatenated. They look like this −const images = [ 'photo1.jpg, 0', 'photo2.jpg, 2', 'photo3.jpg, 1' ];Therefore, the correct order should be − photo1, photo3, photo2. What we need to do is process ... Read More

AmitDiwan
678 Views
Let’s say, we have two arrays of objects that contain information about some products of a company −const first = [ { id: "57e7a1cd6a3f3669dc03db58", quantity:3 }, { id: "57e77b06e0566d496b51fed5", quantity:3 }, { ... Read More

AmitDiwan
2K+ Views
Let’s say, we have an array of objects that contains information about some random transactions carried out by some people −const transactions = [{ name: 'Rakesh', amount: 1500 }, { name: 'Rajesh', amount: 1200 }, { name: 'Ramesh', ... Read More

AmitDiwan
6K+ Views
Let’s say, we have an array of Numbers that contains 0 and 1 −const arr = [0, 1, 0, 1];We are required to write an Array function, toBinary() that returns the corresponding binary for the array it is used with.For example − If the array is −const arr = [1, ... Read More

AmitDiwan
733 Views
We have an array of arrays of Numbers like this one −const arr = [ [12, 56, 34, 88], [65, 66, 32, 98], [43, 87, 65, 43], [32, 98, 76, 83], [65, 89, 32, 54], ];We are required to write a function that maps over ... Read More

AmitDiwan
193 Views
Let’s say, we have an array of numbers −const arr = [3, 5, 7, 8, 3, 5, 7, 4, 2, 8, 4, 2, 1];We are required to write a function that returns an array with the average of the corresponding element and its predecessor. For the first element, as there ... Read More

AmitDiwan
3K+ Views
We have to write a JavaScript function, say extract() that extracts properties from an object to another object and then deletes them from the original object.For example −If obj1 and obj2 are two objects, thenobj1 = {color:"red", age:"23", name:"cindy"} obj2 = extract(obj1, ["color", "name"])After passing through the extract function, they ... Read More

AmitDiwan
205 Views
We are required to write a function that returns true if the string in the first element of the array contains all of the letters of the string in the second element of the array.For example, ["hello", "Hello"], should return true because all of the letters in the second string ... Read More

AmitDiwan
815 Views
Let’s say, we have an array of objects like this −const arr = [ {"name1": "firstString"}, {"name2": "secondString"}, {"name3": "thirdString"}, {"name4": "fourthString"}, {"name5": "fifthString"}, {"name6": "sixthString"}, ];We are required to write a function that takes one such array of objects and returns an object ... Read More