Essentials of Javascript - Cultural View

Essentials of Javascript - Cultural View Essentials of Javascript - Cultural View

culturalview.com
from culturalview.com More from this publisher
14.07.2013 Views

JavaScript 1 JavaScript Paradigm Multi-paradigm: prototype-based, functional, imperative, Appeared in scripting 1995 Designed by Brendan Eich Developer Netscape Communications Corporation, Mozilla Foundation Stable release [1] 1.8.2 (June 22, 2009) Preview release [2] 1.9.3 (June 14, 2010) Typing discipline dynamic, weak, duck Major implementations KJS, Rhino, SpiderMonkey, V8, WebKit Influenced by Self, C, Scheme, Perl, Python, Java Influenced JScript, JScript .NET, Objective-J, TIScript Filename extension .js JavaScript at Wikibooks Internet media type [3] application/javascript, text/javascript Uniform Type Identifier [4] com.netscape.javascript- source Type of format Scripting language This article is part of the JavaScript series. JavaScript JavaScript syntax JavaScript topics JavaScript is an implementation of the ECMAScript language standard and is typically used to enable programmatic access to computational objects within a host environment. It can be characterized as a prototype-based object-oriented [5] scripting language that is dynamic, weakly typed and has first-class functions. It is also considered a functional programming language [6] like Scheme and OCaml because it has closures and supports higher-order functions. [7] JavaScript is primarily used in the form of client-side JavaScript, implemented as part of a web browser in order to provide enhanced user interfaces and dynamic websites. However, its use in applications outside web pages is also significant. JavaScript and the Java programming language both use syntaxes influenced by that of C syntax, and JavaScript copies many Java names and naming conventions; but the two languages are otherwise unrelated and have very different semantics. The key design principles within JavaScript are taken from the Self and Scheme programming languages. [8]

JavaScript 2 History Anyway I know only one programming language worse than C and that is Javascript. [...] I was convinced that we needed to build-in a programming language, but the developers, Tim first, were very much opposed. It had to remain completely declarative. Maybe, but the net result is that the programming-vacuum filled itself with the most horrible kluge in the history of computing: Javascript. [9] Robert Cailliau JavaScript was originally developed by Brendan Eich of Netscape under the name Mocha, which was later renamed to LiveScript, and finally to JavaScript. [10] [11] LiveScript was the official name for the language when it first shipped in beta releases of Netscape Navigator 2.0 in September 1995, but it was renamed JavaScript in a joint announcement with Sun Microsystems on December 4, 1995 [12] when it was deployed in the Netscape browser version 2.0B3. [13] The change of name from LiveScript to JavaScript roughly coincided with Netscape adding support for Java technology in its Netscape Navigator web browser. The final choice of name caused confusion, giving the impression that the language was a spin-off of the Java programming language, and the choice has been characterized by many as a marketing ploy by Netscape to give JavaScript the cachet of what was then the hot new web-programming language. [14] [15] It has also been claimed that the language's name is the result of a co-marketing deal between Netscape and Sun, in exchange for Netscape bundling Sun's Java runtime with their then-dominant browser. JavaScript very quickly gained widespread success as a client-side scripting language for web pages. As a consequence, Microsoft developed a compatible dialect of the language, naming it JScript to avoid trademark issues. JScript added new date methods to fix the non-Y2K-friendly methods in JavaScript, which were based on java.util.Date [16] . [17] JScript was included in Internet Explorer 3.0, released in August 1996. The dialects are perceived to be so similar that the terms "JavaScript" and "JScript" are often used interchangeably. (Microsoft, however, notes dozens of ways in which JScript is not ECMA-compliant. [18] ) In November, 1996 Netscape announced that it had submitted JavaScript to Ecma International for consideration as an industry standard, and subsequent work resulted in the standardized version named ECMAScript. [19] JavaScript has become one of the most popular programming languages on the web. Initially, however, many professional programmers denigrated the language because its target audience was web authors and other such "amateurs", among other reasons. [20] The advent of Ajax returned JavaScript to the spotlight and brought more professional programming attention. The result was a proliferation of comprehensive frameworks and libraries, improved JavaScript programming practices, and increased usage of JavaScript outside of web browsers, as seen by the proliferation of server-side JavaScript platforms. In January 2009 the CommonJS project was founded with the goal of specifying a common standard library mainly for JavaScript development outside the browser. [21]

JavaScript 1<br />

JavaScript<br />

Paradigm Multi-paradigm: prototype-based, functional, imperative,<br />

Appeared in<br />

scripting<br />

1995<br />

Designed by Brendan Eich<br />

Developer Netscape Communications Corporation, Mozilla Foundation<br />

Stable release [1]<br />

1.8.2 (June 22, 2009)<br />

Preview release [2]<br />

1.9.3 (June 14, 2010)<br />

Typing discipline dynamic, weak, duck<br />

Major implementations KJS, Rhino, SpiderMonkey, V8, WebKit<br />

Influenced by Self, C, Scheme, Perl, Python, Java<br />

Influenced JScript, JScript .NET, Objective-J, TIScript<br />

Filename extension .js<br />

JavaScript at Wikibooks<br />

Internet media type [3]<br />

application/javascript, text/javascript<br />

Uniform Type Identifier [4]<br />

com.netscape.javascript- source<br />

Type <strong>of</strong> format Scripting language<br />

This article is part <strong>of</strong> the JavaScript series.<br />

JavaScript<br />

JavaScript syntax<br />

JavaScript topics<br />

JavaScript is an implementation <strong>of</strong> the ECMAScript language standard and is typically used to enable<br />

programmatic access to computational objects within a host environment. It can be characterized as a<br />

prototype-based object-oriented [5] scripting language that is dynamic, weakly typed and has first-class functions. It is<br />

also considered a functional programming language [6] like Scheme and OCaml because it has closures and supports<br />

higher-order functions. [7]<br />

JavaScript is primarily used in the form <strong>of</strong> client-side JavaScript, implemented as part <strong>of</strong> a web browser in order to<br />

provide enhanced user interfaces and dynamic websites. However, its use in applications outside web pages is also<br />

significant.<br />

JavaScript and the Java programming language both use syntaxes influenced by that <strong>of</strong> C syntax, and JavaScript<br />

copies many Java names and naming conventions; but the two languages are otherwise unrelated and have very<br />

different semantics. The key design principles within JavaScript are taken from the Self and Scheme programming<br />

languages. [8]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!