mozilla

Revision 651749 of New in JavaScript 1.1

  • リビジョンの URL スラグ: Web/JavaScript/New_in_JavaScript/1.1
  • リビジョンのタイトル: New in JavaScript 1.1
  • リビジョンの ID: 651749
  • 作成日:
  • 作成者: fscholz
  • 現行リビジョン いいえ
  • コメント History digging. Add new and changed features of JavaScript 1.1
タグ: 

このリビジョンの内容

The following is a changelog for JavaScript from Netscape Navigator 2.0 to 3.0. The old Netscape documentation references this as "Features added after version 1". Netscape Navigator 3.0 was released on August 19, 1996. Netscape Navigator 3.0 was the second major version of the browser with JavaScript support.

JavaScript versions

Netscape Navigator 3.0 also introduced JavaScript language versions.

<SCRIPT LANGUAGE="JavaScript">    <!-- specifies JavaScript for Navigator 2.0. -->
<SCRIPT LANGUAGE="JavaScript1.1"> <!-- specifies JavaScript for Navigator 3.0. -->

New features in JavaScript 1.1

New objects

New properties

New methods

New operators

Other new features

Changed functionality in JavaScript 1.1

  • "Object deletion". You can remove an object by setting its object reference to null.
  • constructor and prototype properties on objects added.
  • eval() is now a method of every object (was previously a built-in function); it evaluates a string of JavaScript code in the context of the specified object.
  • Math.random() now works on every platform.
  • toString(): Added radix parameter, which specifies the base to use for representing numeric values.
  • isNaN() now works on every platform (not only Unix anymore)
  • parseFloat() and parseint() now return NaN on all platforms, if the first character of the specified string cannot be converted to a number; in previous releases, it returned NaN on Solaris and Irix and zero on all other platforms.

このリビジョンのソースコード

<p>The following is a changelog for JavaScript from Netscape Navigator 2.0 to 3.0. The old Netscape documentation references this as <a href="http://web.archive.org/web/20060318153542/wp.netscape.com/eng/mozilla/3.0/handbook/javascript/index.html">"Features added after version 1"</a>. Netscape Navigator 3.0 was released on August 19, 1996. Netscape Navigator 3.0 was the second major version of the browser with JavaScript support.</p>
<h2>JavaScript versions</h2>
<p>Netscape Navigator 3.0 also introduced JavaScript language versions.</p>
<pre>
&lt;SCRIPT LANGUAGE="JavaScript"&gt;    &lt;!-- specifies JavaScript for Navigator 2.0. --&gt;
&lt;SCRIPT LANGUAGE="JavaScript1.1"&gt; &lt;!-- specifies JavaScript for Navigator 3.0. --&gt;</pre>
<h2>New features in JavaScript 1.1</h2>
<h3>New objects</h3>
<ul>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">Boolean</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></code></li>
</ul>
<h3>New properties</h3>
<ul>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE">Number.MAX_VALUE</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE">Number.MIN_VALUE</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN">NaN</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY">Number.NEGATIVE_INFINITY</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY">Number.POSITIVE_INFINITY</a></code></li>
</ul>
<h3>New methods</h3>
<ul>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join">Array.prototype.join()</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse">Array.prototype.reverse()</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort">Array.prototype.sort()</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split">String.prototype.split()</a></code></li>
</ul>
<h3>New operators</h3>
<ul>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Operators/typeof">typeof</a></code></li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Operators/void">void</a></code></li>
</ul>
<h3>Other new features</h3>
<ul>
 <li><code><a href="/en-US/docs/Web/HTML/Element/noscript">&lt;noscript&gt;</a></code></li>
 <li><a href="/en-US/docs/Archive/Web/LiveConnect">LiveConnect</a>. Communication between Java and JavaScript.</li>
</ul>
<h2>Changed functionality in JavaScript 1.1</h2>
<ul>
 <li>"Object deletion". You can remove an object by setting its object reference to <code>null</code>.</li>
 <li><code>constructor</code> and <code>prototype</code> properties on objects added.</li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval">eval()</a></code> is now a method of every object (was previously a built-in function); it evaluates a string of JavaScript code in the context of the specified object.</li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random">Math.random()</a></code> now works on every platform.</li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString">toString()</a></code>: Added radix parameter, which specifies the base to use for representing numeric values.</li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN">isNaN()</a></code> now works on every platform (not only Unix anymore)</li>
 <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat">parseFloat()</a></code> and <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt">parseint()</a></code> now return <code>NaN</code> on all platforms, if the first character of the specified string cannot be converted to a number; in previous releases, it returned <code>NaN</code> on Solaris and Irix and zero on all other platforms.</li>
</ul>
このリビジョンへ戻す