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
볡μ¬