๐Ÿ“

3. hello world!

// ํŒŒ์ผ์ด๋ฆ„ : 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
ย