Write a function sumPositiveNumbers(arr) that takes an array of numbers and returns the sum of all positive numbers in the array.
Example 1:
Input: [1, -2, 3, 4, -5]
Output: 8Write a function sumPositiveNumbers(arr) that takes an array of numbers and returns the sum of all positive numbers in the array.
Example 1:
Input: [1, -2, 3, 4, -5]
Output: 8Preparing file system...
Setting up your coding environment
Run your tests to see the results here...