Running your first 'Hello World' program on LinkIt Smart 7688

Aim

In this section, we are creating the first Hello world program through Node.js.

Steps

  • Generate a folder named app
          > mkdir app
    
  • Edit app.js
          > vim app.js
    
  • In app.js, press i and enter the following codes:

          console.log('Hello world');
    
  • Press ESC, then enter wq! to save and leave.
  • Enter node app.js and the result can be seen as below:
          > Hello world
    
  • Done!

results matching ""

    No results matching ""