Skip to content

Commit 34256a3

Browse files
committedFeb 21, 2023
problem 47 solved successfully
1 parent 19158ec commit 34256a3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed
 

‎problem47/problem47.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,17 @@ Print the result.
1111
1212
problem getting source : https://drive.google.com/file/d/1Ut8t4Ed8V-U0Axtz4nbIXJhmxvMEMUe9/view
1313
14-
*/
14+
*/
15+
16+
const findTheBiggestNumber = (arr1, arr2) => {
17+
const combinationOfTowArr = [...arr1, ...arr2];
18+
const biggestNumberIs = Math.max(...combinationOfTowArr);
19+
20+
return biggestNumberIs;
21+
};
22+
23+
24+
const numberListOne = [10, 20, 30, 50, 512, 101375];
25+
const numberListTwo = [60, 70, 80, 19, 100, 1375];
26+
const result = findTheBiggestNumber(numberListOne, numberListTwo);
27+
console.log(result);

0 commit comments

Comments
 (0)