티스토리 뷰

 

Option 1.

 

 If you already have installed Node.js, simply type node 'your JS file' to run your code. 

JavaScript engine 이 node.js 에 있어서 Browser 와 index.html 없이도 excute될 수 있다. 

 

 

 

 

Option 2. 

 

 

1. enable Live Edit

 

 

 

 

2. Set Chrome as a default browser 

 

 

3. Click the debug button to open the Chrome browser.

 

 

4. In Chrome, press alt + cmd + i  to launch developer tools to check the result. 

 

'JavaScript' 카테고리의 다른 글

Type Conversion in Javascript (number, string)  (0) 2020.09.15
Rest parameter  (0) 2020.08.26
Single-thread in JavaScript  (0) 2019.09.06
Promise  (0) 2019.09.04
Callback function in JavaScript  (0) 2019.08.28