JavaScript: Difference between revisions

Content deleted Content added
Removed Tim Berners Lee's quote as it is opinion and not history.
m Reverted edits by 173.180.101.194 (talk) to last version by Fred Gandt
Line 1:
 
{{distinguish|Java (programming language)}}
 
{{redirect|Java Script|the writing system|Javanese script}}
 
{{Selfref|For the use of JavaScript on Wikipedia, see [[Wikipedia:JavaScript]].}}
 
{{Infobox programming language
| name = JavaScript
| logo = [[fileFile:JavaScript-logo.png|frameless|JavaScript100px]]
| paradigm = [[Multi-paradigm]]: [[scripting language|scripting]], [[prototype-based programming|prototype-based]], [[imperative programming|imperative]], [[functional programming|functional]]<ref name="jsfunc"/>
| caption = JavaScript
| year = 1995
| file extension = .js
| designer = [[Brendan Eich]]
| paradigm = [[Multi-paradigm]]: [[scripting language|scripting]], [[prototype-based programming|prototype-based]], [[imperative programming|imperative]], [[functional programming|functional]]<ref name="jsfunc"/>
| developer = [[Netscape Communications Corporation]], [[Mozilla Foundation]]
| released = 1995
| latest release version latest_release_version = 1.8.2<ref>[https://developer.mozilla.org/en/firefox_3.6_for_developers#JavaScript Firefox 3.6 supports JavaScript 1.8.2]</ref>
| designer = [[Brendan Eich]]
| latest release date latest_release_date = {{release date and age|2009|6|22}}
| developer= [[Netscape Communications Corporation]], [[Mozilla Foundation]]
| latest_preview_version = 1.8.5<ref>
| latest release version = 1.8.2<ref>[https://developer.mozilla.org/en/firefox_3.6_for_developers#JavaScript Firefox 3.6 supports JavaScript 1.8.2]</ref>
{{cite web
| latest release date = {{release date and age|2009|6|22}}
| url = https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5
| latest preview version = 1.8.5<ref>{{cite web
| title = New in JavaScript 1.8.5
| url = https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5
| publisher = mozilla.org
| title = New in JavaScript 1.8.5
| date =
| publisher = mozilla.org
| accessdate = August 10, 2010
}}</ref>
| latest preview date latest_preview_date = {{Release date|2010|7|27}}
| typing = [[dynamic typing|dynamic]], [[weak typing|weak]], [[duck typing|duck]]
| implementations = [[KDE's JavaScript engine|KJS]], [[Rhino (JavaScript engine)|Rhino]], [[SpiderMonkey (JavaScript engine)|SpiderMonkey]], [[V8 (JavaScript engine)|V8]], [[WebKit]], [[Presto_(layout_engine)#ECMAScript_engines|Carakan]], [[Chakra (JScript engine)|Chakra]]
| influenced_by = [[C (programming language)|C]], [[Java (programming language)|Java]], [[Perl]], [[Python (programming language)|Python]], [[Scheme (programming language)|Scheme]], [[Self programming language|Self]]
| dialects =
| influenced by = [[CActionScript]], (programming language)|C[[CoffeeScript]], [[JavaDart (programming language)|JavaDart]], [[PerlJScript .NET]], [[Python (programming language)|PythonObjective-J]], [[Scheme (programming language)|SchemeQML]], [[Self programming language|Self]]TIScript
| license =
| influenced = [[ActionScript]], [[CoffeeScript]], [[Dart (programming language)|Dart]], [[JScript .NET]], [[Objective-J]], [[QML]], TIScript
| website =
| mime = application/javascript</code><br /><code>text/javascript</code>&nbsp;(obsolete)<ref>[http://www.apps.ietf.org/rfc/rfc4329.html#sec-7.1 RFC 4329]</ref>
| wikibooks = JavaScript
| uniform type = com.netscape.javascript-​source<ref>{{cite web
}}
| publisher = Apple Inc.
{{Infobox file format
| url = http://developer.apple.com/mac/library/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
| caption name = JavaScript
| title = System-Declared Uniform Type Identifiers
| icon =
| work = Mac OS X Reference Library
| logo =
| accessdate = 2010-03-05
| screenshot =
}}</ref>
| caption =
| wikibooks = JavaScript
| file extension = .js
| mime = application/javascript</code><br /><code>text/javascript</code>&nbsp;(obsolete)<ref>[http://www.apps.ietf.org/rfc/rfc4329.html#sec-7.1 RFC 4329]</ref>
| type code =
| uniform type = com.netscape.javascript-​source<ref>{{cite web
{{cite web
| publisher = Apple Inc.
| url = http://developer.apple.com/mac/library/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
| title = System-Declared Uniform Type Identifiers
| work = Mac OS X Reference Library
| accessdate = 2010-03-05
}}</ref>
| magic =
| owner =
| released = 1995
| latest release version =
| latest release date =
| genre = [[Scripting language]]
| container for =
| contained by =
| extended from =
| extended to =
| standard =
| url =
}}
 
{{JavaScriptSidebar}}
 
Line 51 ⟶ 69:
 
== History ==
{{quote box|width = 200px|Anyway I know only one [[programming language]] worse than [[C (programming language)|C]] and that is Javascript. [...] I was convinced that we needed to build-in a programming language, but the developers, [[Tim Berners-Lee|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 [[Kludge|kluge]] in the history of computing: Javascript.|[[Robert Cailliau]]<ref>[[wikinews:Wikinews:Story preparation/Interview with Robert Cailliau]]</ref>}}
JavaScript was originally developed by [[Brendan Eich]] of Netscape under the name ''Mocha'', which was later renamed to ''LiveScript'', and finally to JavaScript mainly because it was more influenced by the [[Java programming language]].<ref>{{cite web|last=Krill |first=Paul |url=http://www.infoworld.com/article/08/06/23/eich-javascript-interview_1.html |title=JavaScript creator ponders past, future |publisher=InfoWorld |date=2008-06-23 |accessdate=2009-05-19}}</ref><ref name="computerworld">{{cite web|last=Hamilton|first=Naomi|url=http://www.computerworld.com.au/article/255293/-z_programming_languages_javascript|title=The A-Z of Programming Languages: JavaScript|publisher=computerworld.com.au|date=2008-06-31}}</ref>
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,<ref>[http://web.archive.org/web/20070916144913/http://wp.netscape.com/newsref/pr/newsrelease67.html Press release announcing JavaScript], "Netscape and Sun announce Javascript(TM)", PR Newswire, Dec 4, 1995</ref> when it was deployed in the Netscape browser version 2.0B3.<ref name="techvision">{{cite web |archiveurl=http://web.archive.org/web/20080208124612/http://wp.netscape.com/comprod/columns/techvision/innovators_be.html |archivedate=2008-02-08 |title=TechVision: Innovators of the Net: Brendan Eich and JavaScript |publisher=Web.archive.org |date= |accessdate=2010-06-14}}</ref>