Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Draft saved
Draft discarded
Cancel
8
  • 7
    You're failing to tell us what exactly is wrong – "why isn't it working" is never really enough. Commented Apr 16, 2021 at 12:25
  • 3
    (But why would you imagine myNumbers.sumof(...) would work?) Commented Apr 16, 2021 at 12:26
  • 1
    change it to sumof(myNumbers)\ Commented Apr 16, 2021 at 12:26
  • Your function is not a method of your array. You'll need to separate them in the function call. Commented Apr 16, 2021 at 12:26
  • @Itamar no, because the first argument to sumof is supposed to be a callback function. Commented Apr 16, 2021 at 12:30

lang-js

AltStyle によって変換されたページ (->オリジナル) /