Node.js is a platform built on the Chrome JavaScript runtime.

Node.js is an event-driven I/O server-side JavaScript environment based on Google's V8 engine. The V8 engine executes Javascript very quickly and has very good performance.

Node.js functions syntax

In JavaScript, a function can be used as a parameter of another function. We can define a function first and then pass it, or we can define the function directly where the parameters are passed.

Node.js functions example

function say(word) { console.log(word);} function execute(someFunction, value) { someFunction(value);} execute(say, "Hello");