Node ์์ํ๊ธฐ
โข
CMD ์์ node ์คํ
โข
VSCODE ํฐ๋ฏธ๋ ์์ ์คํ
โข
Node.js ์ข
๋ฃ
โข
์๋ฐ์คํฌ๋ฆฝํธ(js) ํ์ผ ์คํ
CMD ์์ node ์คํ
node
Shell
๋ณต์ฌ
let welcome = 'Hello node!'
Shell
๋ณต์ฌ
console.log(welcome)
Shell
๋ณต์ฌ
VSCODE ํฐ๋ฏธ๋ ์์ ์คํ
node
Shell
๋ณต์ฌ
let welcome = 'Hello node!'
Shell
๋ณต์ฌ
console.log(welcome)
Shell
๋ณต์ฌ
Node.js ์ข ๋ฃํ๊ธฐ
ctrl + C, ctrl + C
Shell
๋ณต์ฌ
ctrl + D
Shell
๋ณต์ฌ
.exit
Shell
๋ณต์ฌ
์๋ฐ์คํฌ๋ฆฝํธ(js) ํ์ผ ์คํ
โข
test.js
function welcome() {
console.log('Hello Node.js~!');
}
welcome()
/*
node ์๋ฐ์คํฌ๋ฆฝํธ ์คํ
> node (ํ์ผ๊ฒฝ๋ก)
*/
JavaScript
๋ณต์ฌ
node test
PowerShell
๋ณต์ฌ








