JavaScript는 크로스 플랫폼을 지원하는 객체 기반 스크립트 언어입니다. 이 안내서는 JavaScript를 사용할 때 여러분이 알아야 할 내용을 모두 설명합니다.
JavaScript 버전별 새 기능
- /ko/docs/JavaScript/New_in_JavaScript/1.2
- /ko/docs/JavaScript/New_in_JavaScript/1.3
- /ko/docs/JavaScript/New_in_JavaScript/1.4
- /ko/docs/JavaScript/New_in_JavaScript/1.5
- /ko/docs/JavaScript/New_in_JavaScript/1.6
- /ko/docs/JavaScript/New_in_JavaScript/1.7
- /ko/docs/JavaScript/New_in_JavaScript/1.8
- /ko/docs/JavaScript/New_in_JavaScript/1.8.1
- /ko/docs/JavaScript/New_in_JavaScript/1.8.5
배경 지식
이 안내서는 여러분이 다음과 같은 기본적인 배경지식을 갖추고 있다고 가정합니다.
- 인터넷과 월드 와이드 웹(www)에 대한 일반적인 이해.
- 하이퍼 텍스트 마크업 언어(HTML)에 대한 좋은 수준의 실제적인 지식
C 또는 Visual Basic과 같은 언어에 대한 프로그래밍 경험이 있으면 유용하지만 반드시 필요한 것은 아닙니다.
JavaScript 버전
| JavaScript 버전 | Navigator 버전 |
|---|---|
| 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 | |
| JavaScript 1.5 | Navigator 6.0 Mozilla (오픈 소스 브라우저) |
| JavaScript 1.6 | Firefox 1.5, 기타 Mozilla 1.8 기반 제품 |
| JavaScript 1.7 | Firefox 2, 기타 Mozilla 1.8.1 기반 제품 |
| JavaScript 1.8 | Firefox 3, 기타 Gecko 1.9 기반 제품 |
Netscape 엔터프라이즈 서버는 버전별로 각각 다른 버전의 JavaScript 를 지원 합니다. 여러 버전의 엔터프라이즈 서버에서 호환가능한 스크립트를 만들 수 있도록, 기능이 구현된 버전에는 아래 표와 같이 축약부호를 사용합니다.
| 축약 표현 | Enterprise 서버 버전 |
|---|---|
| NES 2.0 | Netscape Enterprise Server 2.0 |
| NES 3.0 | Netscape Enterprise Server 3.0 |
JavaScript 에 대해 알고 싶으시다면
JavaScript 문서는 다음과 같이 구성되어 있습니다:
- JavaScript Guide (이 가이드) 는 JavaScript 언어와 객체에 대한 내용을 제공합니다.
- JavaScript Reference 는 JavaScript 에 대한 레퍼런스를 제공합니다.
JavaScript 가 처음이라면, JavaScript Guide 를 먼저 읽어 보세요. 기초가 튼튼해 졌다면, 개별적인 객체와 구문을 익히기 위해 JavaScript Reference 를 활용하면 됩니다.
JavaScript 학습 팁
Getting started with JavaScript is easy: all you need is a modern Web browser. This guide includes some JavaScript features which are only currently available in the latest versions of Firefox (and other Gecko powered browsers), so using the most recent version of Firefox is recommended.
대화형 인터프리터
An interactive JavaScript prompt is an invaluable aid to learning the language, as it enables you to try things out interactively without having to save a file and refresh a page. The Firefox Error Console, accessible through the Tools menu, provides a simple way to try interactive JavaScript: Just enter a line of code and click the "Evaluate" button.

파이어버그
A more advanced interactive prompt is available using Firebug, a Firefox extension. Expressions you type are interpreted as objects and linked to other parts of Firebug. For example, you can add 5 plus 5, change the case of a string, get a clickable link to the document, or get a link to an element:
Using the arrow on the right bottom corner gives a command editor for multiline scripts.
Firebug also provides an advanced DOM inspector, a JavaScript debugger, a profiling tool and various other utilities. JavaScript code running in a Web page can call, console.log(), a function that prints its arguments to the Firebug console.
Many of the examples in this guide use alert() to show messages as they execute. If you have Firebug installed you can use console.log() in place of alert() when running these examples.
Document conventions
JavaScript applications run on many operating systems; the information in this book applies to all versions. File and directory paths are given in Windows format (with backslashes separating directory names). For Unix versions, the directory paths are the same, except that you use slashes instead of backslashes to separate directories.
This guide uses uniform resource locators (URLs) of the following form:
http://server.domain/path/file.html
In these URLs, server represents the name of the server on which you run your application, such as research1 or www; domain represents your Internet domain name, such as netscape.com or uiuc.edu; path represents the directory structure on the server; and file.html represents an individual file name. In general, items in italics in URLs are placeholders and items in normal monospace font are literals. If your server has Secure Sockets Layer (SSL) enabled, you would use https instead of http in the URL.
This guide uses the following font conventions:
The monospace fontis used for sample code and code listings, API and language elements (such as method names and property names), file names, path names, directory names, HTML tags, and any text that must be typed on the screen. (Monospace italic fontis used for placeholders embedded in code.)- Italic type is used for book titles, emphasis, variables and placeholders, and words used in the literal sense.
- Boldface type is used for glossary terms.
첨부 자료
This document has no attachments. Images can be attached, and then embedded in the article.
| 파일 | 크기 | 날짜 | 첨부됨 |
|---|---|---|---|
| ErrorConsole.png | 20097 바이트 | 2007-07-31 22:26:55 | Simon |
| FirebugCommandLine.PNG | 22567 바이트 | 2011-04-21 04:39:28 | Johnjbarton |
| button-3.png | 1806 바이트 | 2005-12-23 16:54:00 | Rod Whiteley |