Mocha's "Hello World"

Brendan Eich was able to create Mocha, the scripting language that is used for Netscape, this was not just a project he was working on, it was the invention of the future.

"Brendan Eich, official Mozilla Foundation photo" (Darcy Padilla).

The Creation of Mocha

The creation of Mocha gave Netscape a lead. It allowed for interactivity and clearer use of the web. 

Something that would allow developers to change text, move elements around, and generally experiment, without errors flashing on screen every time they screwed up. A scripting language that could easily be embedded right into the HTML of a webpage, that was still powerful enough to lay down a foundation for more adventurous programmers looking to build complex applications.” (The History of the Web, Jay Hoffman).

Mocha’s usage was yet to be fully seen within his demos. 

"This work was rushed to meet a feasibility demonstration deadline. The demo consisted of the bare minimum language implemented and minimally integrated into the Netscape 2 pre-alpha browser." (JavaScript: The First 20 Years, Allen Wirfs-Brock and Brendan Eich).

Netscape’s Mocha (later JavaScript) aimed to turn the web into a full-blown application platform. Furthermore, when used together with their LiveWire application server product, it would enable isomorphic development, with the same language used on both client and server. (A Brief History of JavaScript, Ben Aston). 

"He believed that would save implementation time, although in the end he lacked sufficient time to expose that mechanism in the Mocha prototype." (JavaScript: The First 20 Years, Allen Wirfs-Brock and Brendan Eich).


A photo of Mocha Syntax. (Yifeng Wang)