Chapter 14.3.4. JavaScript and Python: Not So Different After All

There are some syntax differences and some object model differences, but the truth is that JavaScript and Python are more similar than they are different. These similarities are just increasing, and it’s not a coincidence.

Brendan Eich, the creator of JavaScript, has written [1] about how JavaScript needs to solve some of the same problems Python does. Instead of treading over the same ground, he has chosen to take his inspiration directly from Python.

[1] “Python and JavaScript” from Brendan Eich’s Roadmap Updates: http://weblogs.mozillazine.org/roadmap/archives/2006/02/js_and_python_news.html

JavaScript 1.7 is evidence of this.[2] New features include generators, iterators, ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.