Node.js Hello World & Common JS

OUO·2022년 3월 21일
0
post-thumbnail

🤔CLI(Command Line Interface)

수행할 명령을 문자로 입력해서 명령을 내릴 수 있는 방법
👉 명령을 내리는곳 = terminal

❗vscode에서는 view-appearance-show panel-terminal로 열 수 있음
❗node.js로 javascript를 실행 할때는 실행된 terminal에 콘솔이 찍힘

✍ module.exports를 이용해 객체단위로 모듈을 내보낼 수 있고,
require(경로) 내장함수를 통해서 가져와서 사용할 수 있음

profile
develoops!er

0개의 댓글