// ํ์ผ์ด๋ฆ : 001\helloworld.js //ย ์์ํ๊ธฐย ์ ย :ย ํด๋์ด๋ฆย ๋ฐ๊พผย ๊ฒ์ดย ์์ดย npmย installย ํ๋ฉดย ์๋ ย ์๋ย ์์ต๋๋ค. //ย ์ค์นํด์ผํ๋ย ๋ชจ๋์ย ์ฃผ์์ฒ๋ฆฌํด์ย ํญ์ย ์๋จ์ย ๋ฌ์๋์์ต๋๋ค. console.log('helloย world');
- REPL(Read, Eval, Print, Loop)์์๋ ์ค์ตํด๋ด ์๋ค!
- ํฐ๋ฏธ๋์ ๋ ธ๋๋ผ๊ณ ์ ๋ ฅํ๋ฉด ๋ฉ๋๋ค.
ย
ย
REPL ์ค์ต
//console.log๋ window์ console.log๊ฐ ์๋๋ผ global์ console.log์ > global //window์ ๊ฐ์ ์ ์ญ ๊ฐ์ฒด > global.console.log('hello world') //console.log //console.error //console.table //console.time //console.timeEnd > .editor // Entering editor mode (Ctrl+D to finish, Ctrl+C to cancel) console.time('์์') for(let i=0;i<10;i++) {console.log(i)} console.timeEnd('์์') > .exit
ย