
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
527 Views
We are required to write a JavaScript function that takes in an array of Numbers. The array of numbers can contain both positive as well as negative numbers.The purpose of our function is to find the sub array from the array (of any length), whose elements when summed gives the ... Read More

AmitDiwan
183 Views
We are required to write a JavaScript function that takes in two numbers say m and n. Then function should calculate and return m^n.For example − For m = 4, n = 3, thenpower(4, 3) = 4^3 = 4 * 4 * 4 = 64 power(6, 3) = 216The code ... Read More

AmitDiwan
93 Views
Suppose, we have an array of objects that contains information about some data storage devices like this −const drives = [ {size:"900GB", count:3}, {size:"900GB", count:100}, {size:"1200GB", count:5}, {size:"900GB", count:1} ];Notice like how the same size comes multiple times.We are required to write a function that takes ... Read More

AmitDiwan
146 Views
Suppose, we have two arrays of literals like this −const arr1 = ['uno', 'dos', 'tres', 'cuatro']; const arr2 = ['dos', 'cuatro'];We are required to write a JavaScript function that takes in two such arrays and delete all those elements from the first array that are also included in the second ... Read More

AmitDiwan
768 Views
Suppose, we have an object of arrays like this −const obj = { arr_a: [9, 3, 2], arr_b: [1, 5, 0], arr_c: [7, 18] };We are required to write a JavaScript function that takes in one such object of arrays. The function should construct an flattened and ... Read More

AmitDiwan
317 Views
We are required to write a JavaScript function that takes in two comma separated strings. The first string is the key string and the second string is the value string, the number of elements (commas) in both the strings will always be the same.Our function should construct an object based ... Read More

AmitDiwan
161 Views
Suppose, we have an array of arrays like this −const arr = [ ["Ashley", "2017-01-10", 80], ["Ashley", "2017-02-10", 75], ["Ashley", "2017-03-10", 85], ["Clara", "2017-01-10", 90], ["Clara", "2017-02-10", 82] ];We are required to write a JavaScript function that takes in one such array as the ... Read More

AmitDiwan
708 Views
We are required to write a JavaScript function that takes in an array of numbers as the first argument and an upper limit and lower limit number as second and third argument respectively. Our function should filter the array and return a new array that contains elements between the range ... Read More

AmitDiwan
1K+ Views
Suppose, we have an array of objects like this −const arr = [ {a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6} ];We are required to write a JavaScript function that takes in one such array of objects. The function should then map this ... Read More

AmitDiwan
117 Views
We have an array that contains various objects. A few objects on this array have a date field (which basically is returned as a string from the server, not a date object), while for others this field is null.The requirement is that we have to display objects without date at ... Read More