- 3
Pls help to solve the below question in JavaScript
Write a function that would sum up pairs of numbers and print all pairs that equal to 5? Part 2 - Can you write the same program with just a single loop â var arr = []; arr[0] = [1, 2, 3, 4, 5, 6, 7, -2, 0, -1, ]; function SumOfPairs (numbersWithDuplicates) { //Write your code here } SumOfPairs (arr) //Example 2+3 =5 1+4 = 5 Question 3
1 Answer