Functional Programming Examples

These examples come from the following site: http://eloquentjavascript.net/1st_edition/chapter6.html

Again, to see the code for these examples, right-click on this page and choose "View page source" from your browser's popup menu.

Example 1: Let's sum some the numbers in this array ===> [1, 3, 5, 7].

Total:

Example 2: Let's find the zeros in this array ===> [0, 1, 3, 4, 32, 0, 10].

Number of Zeros: