250x250
Notice
Recent Posts
Recent Comments
- Today
- Total
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- mongoose
- TypeScript
- sequelize
- Express
- atlas
- MYSQL
- clipBehavior
- Nodejs
- double quote
- certbot
- css
- flutter
- til
- Find
- JavaScript
- jsonwebtoken
- EC2
- https
- moment
- single quote
- await
- nginx
- findByIdAndDelete
- AWS
- Node.js
- RDS
- TailwindCSS
- async
- wil
- mongodb
Link
Archives
기억 휘발 방지소
[Node.js] REPL 본문
728x90
반응형
REPL은 Read Evaluate Print Loop의 약자로 터미널에서 명령을 입력할 수 있는 Windows의 터미널이나 Unix/Linux의 쉘과 같은 컴퓨터 환경을 나타낸다.
다음 명령을 입력하여 실행시킬 수 있다.
$ node
>

터미널 창에 node를 입력하면 REPL 환경으로 접속할 수 있다.

REPL 환경에서 간단한 연산도 가능하다.

연산 말고도 변수, 함수도 사용할 수 있어 다양한 테스트가 가능하다.

종료할 때에는 Ctrl + C를 두 번 입력하거나 Ctrl + D 혹은 .exit를 입력하면 REPL 환경에서 나올 수 있다.
728x90
반응형
'Web > Node.js' 카테고리의 다른 글
| [Node.js] express.static (0) | 2021.09.09 |
|---|---|
| [Node.js] Express (0) | 2021.09.09 |
| [Node.js] path, __dirname, __filename (0) | 2021.09.09 |
| [Node.js] fs 모듈 (0) | 2021.09.06 |
| [Node.js] morgan (0) | 2021.09.06 |