11
May
08

Javascript Revelations #1

I’m starting to find out that javascript isn’t a crappy language at all. Did you know it’s closer to lisp than it is to Java?.

Heres currying in javascript.

>>> var c = function (b) { return function (a) { return b + a;}};
>>> var add5 = c(5)
>>> add5(3)
8

0 Responses to “Javascript Revelations #1”



  1. No Comments Yet

Leave a Reply