about | help | code help+videos | done | prefs |
Add up all of the negative numbers in the given array. sumNegatives([2, 10, -3, 4, -20, 5]) → -23 sumNegatives([-10, 1, 40, 2]) → -10 sumNegatives([10, 1, -90, -20]) → -110 ...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