about | help | code help+videos | done | prefs |
Write a method that accepts an array of integers and returns the sum of all the POSITIVE integers from the array. arrayPosSum([5, 4, -2, 6]) → 15 arrayPosSum([-24, -42, -122, -4, -9]) → 0 arrayPosSum([4, 10, 200, -6, 30, -7, -21]) → 244 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 250
Copyright Nick Parlante 2017 - privacy