JavaScript
/
JS → Node.js 에서 실행하기
Search
Duplicate
JS → Node.js 에서 실행하기
생성일
2022/08/31 12:12
태그
JS
Node.js
터미널 → 실행
node
Shell
복사
Math.sqrt
(
2
)
console.log
(
"Hello, world"
)
;
Shell
복사
편집기에서 사용하기
.editor
Shell
복사
종료
.exit
Shell
복사
Node.js로 파일을 읽어 들여 실행하기
ls
*.js
# js 파일 다 찾기
node
factorial.js
# 실행
Shell
복사