Node.js Tutorial

Node.js Syntax

Node.js Syntax

Every Node.js program has rules for how statements are written and executed.

  • Follow Node.js syntax rules for statements and blocks
  • Use comments to document code
  • Run examples in the Try it editor

Example

const http = require('http');
console.log("Node ready");
Try it Yourself