wiki:JavaScript
Last modified 11 years ago Last modified on 06/07/07 10:40:58

JavaScript is a functional programming language mainly used in web development for two reasons:

  • every major web browser embeds an interpreter
  • built-in functions provide access the HTML/XML Document Object Model (DOM)

It is officially called ECMAScript due to trademark issues (it has nothing in common with Java besides some syntax similarity). The incompatibilities between web browsers are largely due to DOM implementation differences, not language differences (in other words, your JavaScript code will compile correctly in both Firefox and Internet Explorer but might not do the same thing). JavaScript developement exploded after Gmail demonstrated its capabilities to a large audience and various AjaxLibs became available.

The syntax looks like C or Perl, but in fact the language has more in common with Lisp or Scheme.

More information: