JavaScript the Fun Part



We are in 1995, the year that Brendan Eich created JavaScript; but the way it was created was not like the way a programming language is usually created.

Microsoft vs. Netscape

We know Microsoft from 1975, right? And Netscape by Marc Andresson in 1994.

Both of them have focused on the marking side of the web which can be possible by having a good Web Browser.

Netscape has its own which is Netscape Navigator and Microsoft based on NCSA Mosaic created Internet Explorer.

Browser War I had been more of a coup – when half the Mosaic team defected in early 1994 and formed Netscape under entrepreneur Jim Clark, Mosaic lasted less than a year. But when Microsoft licenses a version of Mosaic and rebrands it Internet Explorer, the fight is on.


At the moment Marc Andresson has more insight than Microsoft's developers. He notices that having a static HTML page is limited and maybe if we could make it dynamically be a better option on a web browser.


The idea of having a way to dynamically change HTML on the page finally led Mrac Andresson to come up with the idea of a dynamic scripting language which we know it today as JavaScript.

Java in 1995

Java programming language was also released in this year.

Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java platform.

And since Java was getting more and more popular why not creating a smaller Java-link scripting language?

It seems a good idea, is not it? For the back-end side we have Java. Why not having Java-Script for the client side?

Sun Microsystems let Marc Andreessen to use the word Java in their new scripting language and the reason for both side was simple.

Sun Microsystems could say our programming language - Java - works at both side. And Netscape could say we are as good as Java is!

Oh Microsoft

The problem that Marc Andreessen was seeing was that at any moment it might Microsoft would come up with a new programming language or technologies that could beat them.

So for beating Microsoft and being the first in the market for having a dynamic web browser Marc Andreessen decided to have a scripting language but as soon as possible.



JavaScript in 10 days

In 1995, Netscape Communications recruited Brendan Eich with the goal of embedding the Scheme programming language into its Netscape Navigator.[16]


Before he could get started, Netscape Communications collaborated with Sun Microsystems to include Sun's more static programming language, Java, in Netscape Navigator so as to compete with Microsoft for user adoption of Web technologies and platforms.[17]


Although there are similarities between JavaScript and Java, including language name, syntax, and respective standard libraries, the two languages are distinct and differ greatly in design. JavaScript was influenced by programming languages such as Self and Scheme.

but, but, but! JavaScript is syntactically like Java and the heart of it is Scheme.

We will talk more about functional programming later on.

Scheme was created during the 1970s at the MIT AI Lab and released by its developers, Guy L. Steele and Gerald Jay Sussman, via a series of memos now known as the Lambda Papers. It was the first dialect of Lisp to choose lexical scope and the first to require implementations to perform tail-call optimization, giving stronger support for functional programming and associated techniques such as recursive algorithms.

Finally ...

To defend the idea of JavaScript against competing proposals, the company needed a prototype. Brendan Eich wrote one in 10 days, in May 1995.



Although it was developed under the name Mocha, the language was officially called LiveScript when it first shipped in beta releases of Netscape Navigator 2.0 in September 1995, but it was renamed JavaScript when it was deployed in the Netscape Navigator 2.0 beta 3 in December.[2][18]

So lets see what this baby has!

Next javascript-in-reality

Update: Thu Aug 15 2019 09:06:23 GMT+0430 (Iran Daylight Time)