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

Timeline for callback method in javascript

Current License: CC BY-SA 4.0

Post Revisions

14 events
when toggle format what by license comment
Apr 16, 2021 at 18:03 comment added Itamar @ADyson I am addressing it to Shulamit, the OP
Apr 16, 2021 at 13:23 answer added WBGUY001 timeline score: 0
Apr 16, 2021 at 12:59 review First posts
Apr 16, 2021 at 13:01
Apr 16, 2021 at 12:51 comment added ADyson @Itamar if you're addressing this to me, it would need to pass both, because both are needed. See my answer below. In future please tag the person you are talking to in your comment.
Apr 16, 2021 at 12:45 history edited Mister Jojo CC BY-SA 4.0
deleted 2 characters in body; edited title
Apr 16, 2021 at 12:32 comment added Itamar should it accept ONLY the CB?
Apr 16, 2021 at 12:30 comment added ADyson @Itamar no, because the first argument to sumof is supposed to be a callback function.
Apr 16, 2021 at 12:30 answer added ADyson timeline score: 2
Apr 16, 2021 at 12:26 comment added isherwood Your function is not a method of your array. You'll need to separate them in the function call.
Apr 16, 2021 at 12:26 comment added Itamar change it to sumof(myNumbers)\
Apr 16, 2021 at 12:26 comment added AKX (But why would you imagine myNumbers.sumof(...) would work?)
Apr 16, 2021 at 12:25 history edited AKX CC BY-SA 4.0
Snippetify
Apr 16, 2021 at 12:25 comment added AKX You're failing to tell us what exactly is wrong – "why isn't it working" is never really enough.
Apr 16, 2021 at 12:23 history asked שולמית שילו CC BY-SA 4.0

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