Iterators, Generators, Array Comprehensions, and More for JavaScript 1.7
Rabu, 16 Agustus 2006
0
komentar
I saw a link today from Hack The Planet titled “What’s new in JavaScript 1.7: Lisp/Python!”, pointing to a “new in JavaScript 1.7” page at developer.mozilla.org.So, of course I had to follow this and see what he meant. Sure enough, JavaScript 1.7 starts to look a bit more like Python in some places. From the “What’s new” document, this is an Array Comprehensions example:var ten_squares = [i * i for...
Baca Selengkapnya ....