Back to our program

Let's pick up where we left off.

Open the hello-world.js file with your favorite text editor and modify its contents to this:

    console.log('Hello World!');

Push your code to the Pi, then on your Pi's command line, inside the sensor-project folder, run this:

node hello-world/hello-world.js

You should see the Hello World! output printed to the console. Congratulations! You have just executed your first piece of server-side JavaScript code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.35.148