Skip to content

Commit aec8a97

Browse files
problem 84 init completed
1 parent 34256a3 commit aec8a97

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

problem46/problem46.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ return averageOfAllNumsTotal;
2424

2525

2626
const numbers = [10, 13, 45, 46];
27+
/* const numbers = [2, 3, 4]; */
2728
const result = complexMathOperation(numbers);
2829
console.log(result.toFixed(2));

problem48/problem.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
3+
## Practice Problem 47 ( map(), filter(), find() )
4+
5+
1. You have **an odd array (array with odd numbers). [ 1, 3, 5, 7, 9 ].**
6+
Now convert this array **into an even array (array with even numbers). [ 2, 4, 6, 8, 10 ].**
7+
Do this using `for loop` & `array.map()`
8+
method. Hints: add one to any odd number and it will become an even
9+
number.
10+
11+
2. You are given **an array say: [33, 50, 79, 78, 90, 101, 30 ]**. Now
12+
return/get all the elements which are divisible by 10 using
13+
`array.filter()` method.
14+
15+
3. Now do the **same task of question 2.** But do this using `array.find()`
16+
method. Then **compare the output** of question 2 & question 3.
17+
18+
19+
20+
prblem provider source : https://drive.google.com/file/d/1XcvIBe_rJlr6GY2rTnHlbIluTABXNhp7/view
21+

problem48/problem48.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
## Practice Problem 47 ( map(), filter(), find() )
3+
4+
1. You have an odd array (array with odd numbers). [ 1, 3, 5, 7, 9 ].
5+
Now convert this array into an even array (array with even
6+
numbers). [ 2, 4, 6, 8, 10 ]. Do this using for loop & array.map()
7+
method. Hints: add one to any odd number and it will become an even
8+
number.
9+
10+
2. You are given an array say: [33, 50, 79, 78, 90, 101, 30 ]. Now
11+
return/get all the elements which are divisible by 10 using
12+
array.filter() method.
13+
14+
3. Now do the same task of question 2. But do this using array.find()
15+
method. Then compare the output of question 2 & question 3.
16+
17+
18+
19+
prblem provider source : https://drive.google.com/file/d/1XcvIBe_rJlr6GY2rTnHlbIluTABXNhp7/view
20+
21+
*/

0 commit comments

Comments
 (0)