Latest Article

With all of the excitement around here about the new Array methods in Mozilla Firefox 1.5, I thought the world may find it interesting as well. So as usual, I wrote an article over at WebReference: Mozilla’s New Array Methods. I hope you enjoy it.

Comments

  1. Jon Baron

    Thanks for the post. I use JavaScript for online experiments, and I like them to be self-contained. I&#039ve been trying to find a way to incorporate some simple statistical calculations without a lot of loops. The following works:

    x=0
    function Sum(v,i,a) {x+=v}
    a=[1,3,4,5]
    a.forEach(Sum)
    x

    answer, 13. Neat.
    Now I can do sums of squares, etc. etc.

Understanding JavaScript Promises E-book Cover

Demystify JavaScript promises with the e-book that explains not just concepts, but also real-world uses of promises.

Download the Free E-book!

The community edition of Understanding JavaScript Promises is a free download that arrives in minutes.