Shannspan / clg-nodejs-1

CLG Node JS Lesson 1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clg-nodejs-1

CLG Node JS Lesson 1

  • Creat a file named sum.js
  • Pass two arguments when running the node command, eg. $ node sum.js 20 10
  • Modify the file to perform the operation below:
    • Fetch the arguments passed in the CLI
    • Store them in variables
    • Add the variables
    • Print the results
  • Execute the sum.js file using Node.js interpreter (CLI), so that the result is displayed in the terminal
  • Exit Node.js

About

CLG Node JS Lesson 1


Languages

Language:JavaScript 100.0%