
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
201 Views
Suppose, we have an array of objects like this −const arr = [ {"time":"18:00:00"}, {"time":"10:00:00"}, {"time":"16:30:00"} ];We are required to write a JavaScript function that takes in one such array and does the following −Extract the times from the json code: so: 18:00:00, 10:00:00, 16:30:00Convert the times ... Read More

AmitDiwan
796 Views
Suppose, we have an object like this −const obj = { "part1": [{"id": 1, "a": 50}, {"id": 2, "a": 55}, {"id": 4, "a": 100}], "part2":[{"id": 1, "b": 40}, {"id": 3, "b": 45}, {"id": 4, "b": 110}] };We are required to write a JavaScript function that takes in one ... Read More

AmitDiwan
741 Views
We have an array that holds several objects named student, each object student has several properties, one of which is an array named grades −const arr = [ { name: "Student 1", grades: [ 65, 61, 67, 70 ] }, { ... Read More

AmitDiwan
283 Views
Suppose, we have a nested array of numbers like this −const arr = [23, 6, [2, [6, 2, 1, 2], 2], 5, 2];We are required to write a program that should print the numbers (elements) of this array to the screen.The printing order of the numbers should according to the ... Read More

AmitDiwan
1K+ Views
Suppose, we have an array of objects like this −const arr = [ { "parentIndex": '0' , "childIndex": '3' , "parent": "ROOT", "child": "root3" }, { "parentIndex": '3' , ... Read More

AmitDiwan
696 Views
Suppose, we have three arrays of numbers like these −const code = [123, 456, 789]; const year = [2013, 2014, 2015]; const period = [3, 4, 5];We are required to write a JavaScript function that takes in three such arrays. The function should then construct an array of objects based ... Read More

AmitDiwan
1K+ Views
We are required to write a JavaScript function that takes in an array of strings as the first argument and a single character as the second argument.The function should return true if the character specified by second argument exists in any of the strings of the array, false otherwise.ExampleThe code ... Read More

AmitDiwan
644 Views
Suppose, we have an array of objects like this −const arr = [ { assigned_user:{ name:'Paul', id: 34158 }, doc_status: "processed" }, { assigned_user:{ ... Read More

AmitDiwan
479 Views
We are required to write a JavaScript program that provides the user an input to enter a string value.The program should then check the input value against some hard-coded array values. Our program should print true to the screen if the input string value is included in the array, false ... Read More

AmitDiwan
210 Views
Suppose, we have an array of strings that contains some duplicate entries like this −const arr = ['blue', 'blue', 'green', 'blue', 'yellow', 'yellow', 'green'];We are required to write a JavaScript function that takes in one such array. The function should merge all the duplicate entries with one another.Therefore, the output ... Read More