소개

  • 리비전 슬러그: Core_JavaScript_1.5_Reference/About
  • 리비전 제목: 소개
  • 리비전 아이디: 176319
  • 제작일시:
  • 만든이: Goldmund
  • 현재 리비전인가요? 아니오
  • 댓글 /* What You Should Already Know */

리비전 내용

New Features in this Release

JavaScript version 1.5 provides the following new features and enhancements:

Runtime errors:

Runtime errors are now reported as exceptions.

Number formatting enhancements:

Number formating has been enhanced to include Number.prototype.toExponential, Number.prototype.toFixed, and Number.prototype.toPrecision methods.

Regular expression enhancements:

  • Greedy quantifiers - +, *, ? and {} - can now be followed by a ? to force them to be non-greedy.
  • Non-capturing parentheses, (?:x) can be used instead of capturing parentheses(x). When non-capturing parentheses are used, matched subexpressions are not available as back-references.
  • Positive and negative lookahead assertions are supported. Both assert a match depending on what follows the string being matched.
  • The m flag has been added to specify that the regular expression should match over multiple lines.

Conditional function declarations:

Functions can now be declared inside an if clause.

Function expressions:

Functions can now be declared inside an expression.

Multiple catch clauses:

Multiple catch clauses in a try...catch statement are supported.

Constants:

Read-only, named constants are supported. This feature is available only in the C implementation of JavaScript.

Getters and Setters:

JavaScript writers can now add getters and setters to their objects. This feature is available only in the C implementation of JavaScript.


What You Should Already Know

이 문서는 읽는이가 다음과 같은 배경지식을 가지고 있다고 가정한다.

  • 인터넷과 월드와이드웹(WWW)에 대한 전반적인 이해.
  • 하이퍼텍스트 마크업 언어(HTML)를 잘 다룰 정도의 지식.

C 언어나 비주얼 베이직과 같은 프로그래밍 언어에 대한 경험이 있다면 유용하지만, 꼭 필요한 것은 아니다.

JavaScript Versions

Each version of Navigator supports a different version of JavaScript. To help you write scripts that are compatible with multiple versions of Navigator, this manual lists the JavaScript version in which each feature was implemented.

The following table lists the JavaScript version supported by different Navigator versions. Versions of Navigator prior to 2.0 do not support JavaScript.

JavaScript and Navigator Versions

JavaScript Version Navigator Version
JavaScript 1.0 Navigator 2.0
JavaScript 1.1 Navigator 3.0
JavaScript 1.2 Navigator 4.0-4.05
JavaScript 1.3 Navigator 4.06-4.7x
JavaScript 1.4 n/a
JavaScript 1.5 Navigator 6.0

Mozilla (open source browser)

Each version of the Netscape Enterprise Server also supports a different version of JavaScript. To help you write scripts that are compatible with multiple versions of the Enterprise Server, this manual uses an abbreviation to indicate the server version in which each feature was implemented.

JavaScript and Netscape Enterprise Server Versions

Abbreviation Enterprise Server Version
NES 2.0 Netscape Enterprise Server 2.0
NES 3.0 Netscape Enterprise Server 3.0

Where to Find JavaScript Information

The core JavaScript documentation includes the following books:

If you are new to JavaScript, start with the Core JavaScript 1.5 Guide. Once you have a firm grasp of the fundamentals, you can use the Core JavaScript 1.5 Reference to get more details on individual objects and statements.

{{ wiki.languages( { "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/O_tym_dokumencie" } ) }}

리비전 소스

<h3 name="New_Features_in_this_Release"> New Features in this Release </h3>
<p>JavaScript version 1.5 provides the following new features and enhancements:
</p><p><b>Runtime errors:</b>  
</p>
<dl><dd> Runtime errors are now reported as exceptions.
</dd></dl>
<p><b>Number formatting enhancements:</b>  
</p>
<dl><dd> Number formating has been enhanced to include <code>Number.prototype.toExponential</code>, <code>Number.prototype.toFixed</code>, and <code>Number.prototype.toPrecision</code> methods.
</dd></dl>
<p><b>Regular expression enhancements</b>:
</p>
<ul><li> Greedy quantifiers <code>- +</code>, <code>*</code>, <code>?</code> and <code>{}</code> - can now be followed by a <code>?</code> to force them to be non-greedy.
</li><li> Non-capturing parentheses, <code>(?:x)</code> can be used instead of capturing parentheses<code>(x)</code>. When non-capturing parentheses are used, matched subexpressions are not available as back-references.
</li><li> Positive and negative lookahead assertions are supported. Both assert a match depending on what follows the string being matched.
</li><li> The <code>m</code> flag has been added to specify that the regular expression should match over multiple lines.
</li></ul>
<p><b>Conditional function declarations:</b> 
</p>
<dl><dd> Functions can now be declared inside an if clause.
</dd></dl>
<p><b>Function expressions:</b> 
</p>
<dl><dd> Functions can now be declared inside an expression.
</dd></dl>
<p><b>Multiple catch clauses:</b> 
</p>
<dl><dd> Multiple <code>catch</code> clauses in a <code>try...catch</code> statement are supported.
</dd></dl>
<p><b>Constants:</b> 
</p>
<dl><dd> Read-only, named constants are supported. This feature is available only in the C implementation of JavaScript.
</dd></dl>
<p><b>Getters and Setters:</b> 
</p>
<dl><dd> JavaScript writers can now add getters and setters to their objects. This feature is available only in the C implementation of JavaScript.
</dd></dl>
<p><br>
</p>
<h3 name="What_You_Should_Already_Know"> What You Should Already Know </h3>
<p>이 문서는 읽는이가 다음과 같은 배경지식을 가지고 있다고 가정한다.
</p>
<ul><li> 인터넷과 월드와이드웹(WWW)에 대한 전반적인 이해.
</li><li> 하이퍼텍스트 마크업 언어(HTML)를 잘 다룰 정도의 지식.
</li></ul>
<p>C 언어나 비주얼 베이직과 같은 프로그래밍 언어에 대한 경험이 있다면 유용하지만, 꼭 필요한 것은 아니다.
</p>
<h3 name="JavaScript_Versions"> JavaScript Versions </h3>
<p>Each version of Navigator supports a different version of JavaScript. To help you write scripts that are compatible with multiple versions of Navigator, this manual lists the JavaScript version in which each feature was implemented.
</p><p>The following table lists the JavaScript version supported by different Navigator versions. Versions of Navigator prior to 2.0 do not support JavaScript. 
</p>
<h4 name="JavaScript_and_Navigator_Versions"> JavaScript and Navigator Versions </h4>
<table class="standard-table">

<tbody><tr>
<td class="header">JavaScript Version
</td><td class="header">Navigator Version
</td></tr>


<tr>
<td>JavaScript 1.0
</td><td>Navigator 2.0
</td></tr>


<tr>
<td>JavaScript 1.1
</td><td>Navigator 3.0
</td></tr>


<tr>
<td>JavaScript 1.2
</td><td>Navigator 4.0-4.05
</td></tr>


<tr>
<td>JavaScript 1.3
</td><td>Navigator 4.06-4.7x
</td></tr>


<tr>
<td>JavaScript 1.4
</td><td>n/a
</td></tr>


<tr>
<td>JavaScript 1.5
</td><td>Navigator 6.0<br>
<p>Mozilla (open source browser)
</p>
</td></tr>
</tbody></table>
<p>Each version of the Netscape Enterprise Server also supports a different version of JavaScript. To help you write scripts that are compatible with multiple versions of the Enterprise Server, this manual uses an abbreviation to indicate the server version in which each feature was implemented.
</p>
<h4 name="JavaScript_and_Netscape_Enterprise_Server_Versions"> JavaScript and Netscape Enterprise Server Versions </h4>
<table class="standard-table">

<tbody><tr>
<td class="header"> Abbreviation
</td><td class="header"> Enterprise Server Version
</td></tr>


<tr>
<td>NES 2.0
</td><td>Netscape Enterprise Server 2.0
</td></tr>


<tr>
<td>NES 3.0
</td><td>Netscape Enterprise Server 3.0
</td></tr>
</tbody></table>
<h3 name="Where_to_Find_JavaScript_Information"> Where to Find JavaScript Information </h3>
<p>The core JavaScript documentation includes the following books:
</p>
<ul><li> The <a href="ko/Core_JavaScript_1.5_Guide">Core JavaScript 1.5 Guide</a> provides information about the core JavaScript language and its objects.
</li></ul>
<ul><li> The <a href="ko/Core_JavaScript_1.5_Reference">Core JavaScript 1.5 Reference</a> (this book) provides reference material for the core JavaScript language.
</li></ul>
<p>If you are new to JavaScript, start with the <a href="ko/Core_JavaScript_1.5_Guide">Core JavaScript 1.5 Guide</a>. Once you have a firm grasp of the fundamentals, you can use the <a href="ko/Core_JavaScript_1.5_Reference">Core JavaScript 1.5 Reference</a> to get more details on individual objects and statements.
</p>{{ wiki.languages( { "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/O_tym_dokumencie" } ) }}
Revert to this revision