Node JS Interview

Node JS Interview Question and Answer

Q.What is Node JS?

A.Node.js is a JavaScript framework built on Chrome's V8 JavaScript engine.Node.js is completely free to use.

Q.Difference between a module and a package in Node JS?

A. Module: Module are like JavaScript libraries for node.js.
require() Method is used to include module.
Package: A package is one or more modules (libraries) grouped together.
Package should be loaded at the entry point (main), which is specified in the package.json.