Skip to main content

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*

5
  • \$\begingroup\$ This question only wants the array returned, so you can remove console.log(r) and some other things \$\endgroup\$ Commented Feb 24, 2014 at 19:47
  • \$\begingroup\$ The function declaration doesn't count toward the score (reason is to help level the playing field) \$\endgroup\$ Commented Feb 25, 2014 at 4:23
  • \$\begingroup\$ Ok. Adjusted the score as per @impinball's comment. (Actually there are two functions declared here. Char count includes the anonymous function) \$\endgroup\$ Commented Feb 25, 2014 at 4:55
  • \$\begingroup\$ It should. I updated the rules to help explain it better. \$\endgroup\$ Commented Feb 25, 2014 at 5:06
  • \$\begingroup\$ Meanwhile, came up with something better... \$\endgroup\$ Commented Feb 25, 2014 at 5:11