JavaScript

  • Revision slug: JavaScript
  • Revision title: JavaScript
  • Revision id: 1270
  • Created:
  • Creator: shri_rpi
  • Is current revision? No
  • Comment one or more formatting changes

Revision Content

A re-introduction to JavaScript
Insert creative description here.

JavaScript® (sometimes shortened to JS) is a lightweight, object-oriented language, most known as the scripting language for web pages, but used in many non-browser environments as well. (Read more about JavaScript.)

This section of the site is dedicated to JavaScript-the-language, the parts that are not specific to web pages or other host environments. For information about APIs specific to web pages, please see DOM. Read more about how DOM and JavaScript fit together in the DOM Reference.

For information about embedding the JavaScript engine in your application, see SpiderMonkey and Rhino.

Documentation

JavaScript Reference
This JavaScript reference includes complete documentation for JavaScript 1.5 and updates.
JavaScript Guide
Our primary guide about how to program with JavaScript.
JavaScript technologies overview
Introduction to the web browser JavaScript landscape
ECMAScript 5 support in Mozilla
A look at Mozilla's current — and planned support for ECMAScript 5.
New in JavaScript 1.6
JavaScript 1.6 (supported in Firefox 1.5 and other Mozilla 1.8-based applications) adds item location and iterative methods to arrays, Array and String functions for use on other types, and E4X support including for each...in.
New in JavaScript 1.7
JavaScript 1.7 (supported in Firefox 2) adds generators and iterators, array comprehensions, block scopes with let, and destructuring assignment.
New in JavaScript 1.8
JavaScript 1.8 (supported in Firefox 3.0) adds expression closures, generator expressions, and reduce() and reduceRight() methods on arrays.
New in JavaScript 1.8.1
JavaScript 1.8.1 (supported in Firefox 3.5) adds native JSON encoding and decoding, Object.getPrototypeOf, and the string trim methods: trim(), trimLeft(), and trimRight().
New in JavaScript 1.8.5
JavaScript 1.8.5 (the latest version, supported in Firefox 4) adds ECMAScript 5 support for Object and Object.prototype methods, Array.isArray, Function.prototype.bind as well as strict mode
JavaScript Language Resources
A description of the JavaScript language standards.
JScript Deviations from ES3 (PDF)
Describes differences between the ECMAScript ed. 3 standard and its Microsoft implementation (JScript). Also includes information on other browsers (Opera, Firefox, and Safari).

View All...

Community

  • View Mozilla forums...

{{ DiscussionList("dev-tech-javascript", "mozilla.dev.tech.javascript") }}

Featured tools

View All...

Other resources

JavaScript Garden
A site with helpful information about the more esoteric parts of JavaScript.

Related topics

AJAX, DOM, Server-Side JavaScript, DHTML, E4X, SpiderMonkey, Canvas

JavaScript is a trademark or registered trademark of Sun Microsystems, Inc. in the U.S. and other countries.

{{ languages( { "de": "de/JavaScript", "es": "es/JavaScript", "fr": "fr/JavaScript", "it": "it/JavaScript", "ja": "ja/JavaScript", "ko": "ko/JavaScript", "pl": "pl/JavaScript", "pt": "pt/JavaScript", "ru": "ru/JavaScript", "zh-cn": "cn/JavaScript", "zh-tw": "zh_tw/JavaScript" } ) }}

Revision Source

<div class="callout-box"><strong><a href="/en/JavaScript/A_re-introduction_to_JavaScript" title="./A re-introduction to JavaScript">A re-introduction to JavaScript</a></strong><br> <span class="comment">Insert creative description here.</span></div>
<div> <p><strong>JavaScript</strong><sup>®</sup> (sometimes shortened to JS) is a lightweight, object-oriented language, most known as the scripting language for web pages, <span style="background-color:#ffd700;">but </span><a class="external" href="http://en.wikipedia.org/wiki/JavaScript#Uses_outside_web_pages" title="http://en.wikipedia.org/wiki/JavaScript#Uses_outside_web_pages"><span style="background-color:#ffd700;">used in many non-browser environments</span></a> as well. (<a href="/en/JavaScript/About_JavaScript" title="./About JavaScript">Read more about JavaScript</a>.)</p> <p>This section of the site is dedicated to JavaScript-the-language, the parts that are not specific to web pages or other host environments. For information about APIs specific to web pages, please see <a href="/en/DOM" title="en/DOM">DOM</a>. Read more about how DOM and JavaScript fit together in the <a href="/en/Gecko_DOM_Reference/Introduction#DOM_and_JavaScript" title="en/Gecko DOM Reference/Introduction#DOM and JavaScript">DOM Reference</a>.</p> For information about embedding the JavaScript engine in your application, see <a href="/en/SpiderMonkey" title="en/SpiderMonkey">SpiderMonkey</a> and <a href="/en/Rhino" title="en/Rhino">Rhino</a>.</div>
<table class="topicpage-table"> <tbody> <tr> <td> <h4 name="Documentation"><a href="/Special:Tags?tag=JavaScript&amp;language=en" title="Special:Tags?tag=JavaScript&amp;language=en">Documentation</a></h4> <dl> <dt><a href="/en/JavaScript/Reference" title="en/JavaScript/Reference">JavaScript Reference</a></dt> <dd><small>This JavaScript reference includes complete documentation for JavaScript 1.5 and updates.</small></dd> </dl> <dl> <dt><a href="/en/JavaScript/Guide" title="./Guide">JavaScript Guide</a></dt> <dd><small>Our primary guide about how to program with JavaScript.</small></dd> </dl> <dl> <dt><a href="/en/JavaScript_technologies_overview" title="./Guide">JavaScript technologies overview</a></dt> <dd><small>Introduction to the web browser JavaScript landscape</small></dd> </dl> <dl> <dt><a class="internal" href="/En/JavaScript/ECMAScript_5_support_in_Mozilla" title="en/JavaScript/ECMAScript 5 support in Mozilla">ECMAScript 5 support in Mozilla</a></dt> <dd><small>A look at Mozilla's current — and planned </small><small>—</small><small> support for ECMAScript 5.</small></dd> </dl> <dl> <dt><a href="/en/JavaScript/New_in_JavaScript/1.6" title="./New in JavaScript/1.6">New in JavaScript 1.6</a></dt> <dd><small>JavaScript 1.6 (supported in Firefox 1.5 and other Mozilla 1.8-based applications) adds item location and iterative methods to arrays, Array and String functions for use on other types, and <a class="internal" href="/en/E4X" title="En/E4X">E4X</a> support including <code>for each</code>...<code>in</code>.</small></dd> </dl> <dl> <dt><a href="/en/JavaScript/New_in_JavaScript/1.7" title="./New in JavaScript/1.7">New in JavaScript 1.7</a></dt> <dd><small>JavaScript 1.7 (supported in Firefox 2) adds generators and iterators, array comprehensions, block scopes with <code>let</code>, and destructuring assignment.</small></dd> </dl> <dl> <dt><a href="/en/JavaScript/New_in_JavaScript/1.8" title="./New in JavaScript/1.8">New in JavaScript 1.8</a></dt> <dd><small>JavaScript 1.8 (</small><small>supported in </small><small>Firefox 3.0) adds expression closures, generator expressions, and <a class="internal" href="/en/JavaScript/Reference/Global_Objects/Array/Reduce" title="En/Core JavaScript 1.5 Reference/Global Objects/Array/Reduce"><code>reduce()</code></a> and <a class="internal" href="/en/JavaScript/Reference/Global_Objects/Array/ReduceRight" title="En/Core JavaScript 1.5 Reference/Global Objects/Array/ReduceRight"><code>reduceRight()</code></a> methods on arrays.</small></dd> </dl> <dl> <dt><a class="internal" href="/En/JavaScript/New_in_JavaScript/1.8.1" title="./New in JavaScript/1.8.1">New in JavaScript 1.8.1</a></dt> <dd><small>JavaScript 1.8.1 (supported in Firefox 3.5) adds native JSON encoding and decoding, <code><a class="internal" href="/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf" title="En/Core JavaScript 1.5 Reference/Global Objects/Object/GetPrototypeOf">Object.getPrototypeOf</a></code>, and the string trim methods: <code><a class="internal" href="/en/JavaScript/Reference/Global_Objects/String/Trim" title="En/Core JavaScript 1.5 Reference/Global Objects/String/Trim">trim()</a></code>, <code><a class="internal" href="/en/JavaScript/Reference/Global_Objects/String/TrimLeft" title="En/Core JavaScript 1.5 Reference/Global Objects/String/TrimLeft">trimLeft()</a></code>, and <code><a class="internal" href="/en/JavaScript/Reference/Global_Objects/String/TrimRight" title="En/Core JavaScript 1.5 Reference/Global Objects/String/TrimRight">trimRight()</a></code>.</small></dd> </dl> <dl> <dt><a class="internal" href="/en/JavaScript/New_in_JavaScript/1.8.5" title="./New in JavaScript/1.8.5">New in JavaScript 1.8.5</a></dt> <dd><small>JavaScript 1.8.5 (the latest version, supported in Firefox 4) adds ECMAScript 5 support for <a href="/en/JavaScript/Reference/Global_Objects/Object" title="en/JavaScript/Reference/Global Objects/Object"><code>Object</code></a> and <code>Object.prototype</code> methods, <code>Array.isArray</code>, <code>Function.prototype.bind</code> as well as <a href="/en/JavaScript/Strict_mode" title="en/JavaScript/Strict mode">strict mode</a></small></dd> </dl> <dl> </dl> <dl> <dt><a href="/en/JavaScript/Language_Resources" title="./Language Resources">JavaScript Language Resources</a></dt> <dd><small>A description of the JavaScript language standards.</small></dd> </dl> <dl> <dt><a class="external" href="http://wiki.ecmascript.org/lib/exe/fetch.php?id=resources:resources&amp;cache=cache&amp;media=resources:jscriptdeviationsfromes3.pdf">JScript Deviations from ES3</a> (PDF)</dt> <dd><small>Describes differences between the ECMAScript ed. 3 standard and its Microsoft implementation (JScript). Also includes information on other browsers (Opera, Firefox, and Safari).</small></dd> </dl> <p><span class="alllinks"><a href="/Special:Tags?tag=JavaScript&amp;language=en" title="Special:Tags?tag=JavaScript&amp;language=en">View All...</a></span></p> </td> <td> <h4 name="Community">Community</h4> <ul> <li>View Mozilla forums...</li> </ul> <p>{{ DiscussionList("dev-tech-javascript", "mozilla.dev.tech.javascript") }}</p> <ul> <li><a class="link-irc" href="irc://irc.mozilla.org/js">#js on irc.mozilla.org</a></li> </ul> <h4 name="Featured_tools">Featured tools</h4> <ul> <li><a class="external" href="http://www.getfirebug.com/">Firebug</a> - JavaScript debugging and profiling</li> <li><a href="/en/Venkman" title="en/Venkman">Venkman</a> - JavaScript debugger</li> <li><a href="/en/JavaScript/Shells" title="./Shells">JavaScript Shells</a> - test snippets of code</li> <li><a class="external" href="http://www.jslint.com/lint.html">JSLint</a> - syntax checker, warns against bad practices</li> <li><a class="external" href="http://jshint.com" title="http://jshint.com/">JSHint</a> - community made syntax checker</li> <li><a class="external" href="http://code.google.com/p/jsdoc-toolkit/" title="http://code.google.com/p/jsdoc-toolkit/">JSDoc</a> - generate documentation from code</li> <li><a class="external" href="http://www.aptana.com" title="http://www.aptana.com">Aptana Studio</a> - Open source IDE with Ajax and JavaScript support (base on eclipse)</li> <li><a class="external" href="http://netbeans.org/features/javascript/">Netbeans</a> - Open source IDE which includes sophisticated JavaScript support</li> <li><a class="external" href="http://www.eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/heliossr1">Eclipse</a> - Open source IDE which includes JavaScript Development Toolkit</li> <li><a class="link-https" href="https://addons.mozilla.org/en-US/firefox/addon/7434">Extension Developer's Extension</a> - Offers JS Environment and Shell</li> <li><a href="/en/JavaScript/Other_JavaScript_tools" title="./Other JavaScript tools">Other JavaScript tools</a></li> </ul> <p><span class="alllinks"><a href="/Special:Tags?tag=JavaScript:Tools&amp;language=en" title="Special:Tags?tag=JavaScript:Tools&amp;language=en">View All...</a></span></p> <h4 name="Other resources">Other resources</h4> <dl> <dt><a class="external" href="http://bonsaiden.github.com/JavaScript-Garden/" title="http://bonsaiden.github.com/JavaScript-Garden/">JavaScript Garden</a></dt> <dd>A site with helpful information about the more esoteric parts of JavaScript.</dd> </dl> <h4 name="Related_Topics">Related topics</h4> <dl> <dd><a href="/en/AJAX" title="en/AJAX">AJAX</a>, <a href="/en/DOM" title="en/DOM">DOM</a>, <a class="internal" href="/En/JavaScript/Server-Side_JavaScript" title="./Server-Side JavaScript">Server-Side JavaScript</a>, <a href="/en/DHTML" title="en/DHTML">DHTML</a>, <a href="/en/E4X" title="en/E4X">E4X</a>, <a href="/en/SpiderMonkey" title="en/SpiderMonkey">SpiderMonkey</a>, <a href="/en/HTML/Canvas" title="en/HTML/Canvas">Canvas</a></dd> </dl> </td> </tr> </tbody>
</table>
<p>JavaScript is a trademark or registered trademark of Sun Microsystems, Inc. in the U.S. and other countries.</p>
<p>{{ languages( { "de": "de/JavaScript", "es": "es/JavaScript", "fr": "fr/JavaScript", "it": "it/JavaScript", "ja": "ja/JavaScript", "ko": "ko/JavaScript", "pl": "pl/JavaScript", "pt": "pt/JavaScript", "ru": "ru/JavaScript", "zh-cn": "cn/JavaScript", "zh-tw": "zh_tw/JavaScript" } ) }}</p>
Revert to this revision