|
7 | 7 | 1. [Show the different ways of creating an array](#Q1) |
8 | 8 | 2. [Write a program to iterate over an array and print all the values of it](#Q2) |
9 | 9 | 3. [Write a program to append and prepend, single or multiple values in to an array](#Q3) |
10 | | -4. [Show how insertion and removal of elements can happen in the array for given index](#Q5) |
11 | | -5. [Show the different ways of emptying an array which has values](#Q7) |
12 | | -6. [Check if given input is an array or not](#Q8) |
13 | | -7. [Write a function which can concatenate 2 arrays. If only one array is passed it will duplicate it](#Q9) |
14 | | -8. [Write a program to replace 3 center elements of the 1st array by center 3 elements of the 2nd array](#Q10) |
15 | | -9. [Show how an array in JavaScript can act like a stack and queue](#Q11) |
16 | | -10. [Sort the given array of integers in ascending or descending order](#Q12) |
17 | | -11. [Square all the positive numbers of the array and return the output array](#Q13) |
18 | | -12. Write a code to generate an array with range of numbers and shuffle them |
19 | | -13. [Check if the user with the name "John" exists in the array of objects](#Q14) |
20 | | -14. [Generate an array of objects with properties id and full name from an array of objects where each object will have id, firstname and lastname](#Q15) |
21 | | -15. [Create an array by removing all the holes of the array](#Q16) |
22 | | -16. [Write a program to calculate the sum of all the values of an array](#Q17) |
23 | | -17. [Get the maximum value from a numbers array along with its index](#Q18) |
24 | | -18. [Find the number of occurences of minimum value in the numbers list](#Q19) |
25 | | -19. [Create an array of length n with all the values of it set to 10](#Q20) |
26 | | -20. [Optimize the given statements having lot of logical checks to use a compact and cleaner logic](#Q21) |
27 | | -21. [Write a program to iterate over a 2 dimensional array and print all the values of it](#Q22) |
28 | | -22. [Write a program to store values in to a set](#Q23) |
29 | | -23. [Write a program to store values in to a map](#Q24) |
30 | | -24. [Write a code to iterate over a set](#Q25) |
31 | | -25. [Write a code to iterate over a map](#Q26) |
32 | | -26. [Show how map is different from object to store key value pairs with coding example](#Q27) |
33 | | -27. [Write the code to remove the duplicates from the array](#Q28) |
34 | | -28. [Design a flat function which flattens an array to any depth](#Q29) |
35 | | -29. [Check if all the students of have passed or not (40 is the pass marks)](#Q30) |
36 | | -30. [Get the average of all the salaries which is greater than 10000 from the department of "IT" from the array of objects)](#Q31) |
37 | | -31. [Extract the list of all the elements from the list of numbers given in 2 arrays](#Q32) |
38 | | -32. [Get the list of all distinct elements which are present in both list of numbers](#Q33) |
39 | | -33. [Extract list of elements present only in the first list given.](#Q34) |
40 | | -34. [Create a function named "average" which can calculate the average of an array and should be available to be called from any Array object.](#Q35) |
41 | | -35. [Write a program to polyfill `filter` functionality of the Array](#Q36) |
42 | | -36. [Write a program to polyfill `map` functionality of the Array](#Q37) |
43 | | -37. [Write a program to polyfill `reduce` functionality of the Array](#Q38) |
44 | | -38. [Write a code to eliminate duplicate objects in an array where each object has an 'id' property which can be used to identify the object and the duplicate object with lower rank to be removed](#Q39) |
45 | | -39. [Create an array which will only accept string values. (Homogeneous array of strings)](#Q40) |
46 | | -40. [Create a Proxy object through which the array can be accessed as usual but also allow to access the values through negative indices](#Q41) |
| 10 | +4. [Show how insertion and removal of elements can happen in the array for given index](#Q4) |
| 11 | +5. [Show the different ways of emptying an array which has values](#Q5) |
| 12 | +6. [Check if given input is an array or not](#Q6) |
| 13 | +7. [Write a function which can concatenate 2 arrays. If only one array is passed it will duplicate it](#Q7) |
| 14 | +8. [Write a program to replace 3 center elements of the 1st array by center 3 elements of the 2nd array](#Q8) |
| 15 | +9. [Show how an array in JavaScript can act like a stack and queue](#Q9) |
| 16 | +10. [Sort the given array of integers in ascending or descending order](#Q10) |
| 17 | +11. [Square all the positive numbers of the array and return the output array](#Q11) |
| 18 | +12. [Write a code to generate an array with range of numbers and shuffle them](#Q12) |
| 19 | +13. [Check if the user with the name "John" exists in the array of objects](#Q13) |
| 20 | +14. [Generate an array of objects with properties id and full name from an array of objects where each object will have id, firstname and lastname](#Q14) |
| 21 | +15. [Create an array by removing all the holes of the array](#Q15) |
| 22 | +16. [Write a program to calculate the sum of all the values of an array](#Q16) |
| 23 | +17. [Get the maximum value from a numbers array along with its index](#Q17) |
| 24 | +18. [Find the number of occurences of minimum value in the numbers list](#Q18) |
| 25 | +19. [Create an array of length n with all the values of it set to 10](#Q19) |
| 26 | +20. [Optimize the given statements having lot of logical checks to use a compact and cleaner logic](#Q20) |
| 27 | +21. [Write a program to iterate over a 2 dimensional array and print all the values of it](#Q21) |
| 28 | +22. [Write a program to store values in to a set](#Q22) |
| 29 | +23. [Write a program to store values in to a map](#Q23) |
| 30 | +24. [Write a code to iterate over a set](#Q24) |
| 31 | +25. [Write a code to iterate over a map](#Q25) |
| 32 | +26. [Show how map is different from object to store key value pairs with coding example](#Q26) |
| 33 | +27. [Write the code to remove the duplicates from the array](#Q27) |
| 34 | +28. [Design a flat function which flattens an array to any depth](#Q28) |
| 35 | +29. [Check if all the students of have passed or not (40 is the pass marks)](#Q29) |
| 36 | +30. [Get the average of all the salaries which is greater than 10000 from the department of "IT" from the array of objects)](#Q30) |
| 37 | +31. [Extract the list of all the elements from the list of numbers given in 2 arrays](#Q31) |
| 38 | +32. [Get the list of all distinct elements which are present in both list of numbers](#Q32) |
| 39 | +33. [Extract list of elements present only in the first list given.](#Q33) |
| 40 | +34. [Create a function named "average" which can calculate the average of an array and should be available to be called from any Array object.](#Q34) |
| 41 | +35. [Write a program to polyfill `filter` functionality of the Array](#Q35) |
| 42 | +36. [Write a program to polyfill `map` functionality of the Array](#Q36) |
| 43 | +37. [Write a program to polyfill `reduce` functionality of the Array](#Q37) |
| 44 | +38. [Write a code to eliminate duplicate objects in an array where each object has an 'id' property which can be used to identify the object and the duplicate object with lower rank to be removed](#Q38) |
| 45 | +39. [Create an array which will only accept string values. (Homogeneous array of strings)](#Q39) |
| 46 | +40. [Create a Proxy object through which the array can be accessed as usual but also allow to access the values through negative indices](#Q40) |
47 | 47 |
|
48 | 48 | --- |
49 | 49 |
|
|
0 commit comments