DEV Community

Discussion on: Functional Programming in JavaScript

Collapse
 
craigmc08 profile image
Craig McIlwrath

JavaScript actually does have a bit of a connection to Java. See this article for more detail, but I'll try to summarize it.

Netscape thought that bringing Java to the web was a great idea and they were working with Sun Microsystems to make this happen. The purpose of JavaScript was to be a scripting language that was easy to use (for amateurs, as opposed to the more enterprise-y Java). JavaScript was originally supposed to be Scheme-like, but the partnership with Java forced it to become more Java-like.

It wasn't called JavaScript at first. It started as Mocha (to connect it thematically to Java), but then became LiveScript (to avoid any legal issues before Netscape sealed the deal with Sun). It was renamed to JavaScript after the deal closed, because it was supposed to work very closely with Java (see LiveConnect)

Of course, being a Scheme language with the requirement that it looks like Java was a surefire way to confuse anyone who first looked at the language.