Node.js 튜토리얼

Node.js는 오픈 소스 서버 환경입니다.

Node.js를 사용하면 서버에서 JavaScript를 실행할 수 있습니다.

지금 Node.js 학습 시작하기 »

사례를 통한 학습

"Node.js 표시" 도구를 사용하면 Node.js를 쉽게 배울 수 있으며 코드와 결과를 모두 보여줍니다.

예시

var http = require('http');

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World!');
}).listen(8080);

작동 방식을 보려면 "예제 실행" 버튼을 클릭하십시오.


명령줄 인터페이스에서 실행되는 예

이 자습서에는 명령줄 인터페이스에 결과를 표시하여 더 잘 설명하는 몇 가지 예가 있습니다.

이런 일이 발생하면 "Show Node.js" 도구가 결과를 오른쪽에 검은색 화면으로 표시합니다.

예시

console.log('This example is different!');
console.log('The result is displayed in the Command Line Interface');

작동 방식을 보려면 "예제 실행" 버튼을 클릭하십시오.


Node.js 참조

Node.js에는 내장 모듈 세트가 있습니다.

내장 모듈


Node.js 다운로드

Node.js 공식 웹사이트에서 Node.js를 다운로드하세요: https://nodejs.org