1. What is Node.js
Nodejs is a JavaScript runtime web application framework.
It is an open source web framwork
It works on event-driven, non-blocking I/O model.
It understands javascript.
It is built on Google Chrome's V8 JavaScript engine to support javascript on server side.
It is used to build server side web application and services.
It provides rich libraries of various JavaScript modules for the development of web applications.
2. Where can you use Node.js?
To build a web application.
To build Real time applications.
To build network application.
To build microservices
3. Who is the author of Node Js ?
Node.js was developed by Ryan Dahl in 2009.
4. What are the features of Node.js
Node.js is an open source, cross-platform server environment
Node.js uses asynchronous programming
Works on Asynchronous and Event Driven model.
Uses JavaScript lanaguage for writing for an Node.js application.
It creates lightweight and efficient, perfect for data-intensive real-time applications
It is Single Threaded but very Highly Scalable
5. In which Language Node Js is written ?
Node.js is written in: C, C++ and JavaScript
6. What is NPM in Node.js and what is its role?
NPM - Node package manager
It is the global command which we get after installing the Node.js on our system
To check if its available or not or to check the version :
npm -v
npm --version
It will return the version of the npm installed with node.js
By the help of this npm command we can manage all the modules and node.js application run/build/test.. commands
7. How do you update NPM to a new version in Node.js ?
install npm@latest -g to install the newest npm update
8. How can you check the installed version of Node Js ?
node -v
node --version
9. What are Modules in Node Js ?
Modules are the package of utilities for the specific functionalities which helps in the building the application.
10. What are the available modules mostly used in Node.js?
Node.js available Modules :
assert
async_hooks
child_process
cluster
crypto
dgram
dns
events
fs
http
http2
https
inspector
net
os
path
perf_hooks
querystring
repl
stream
string_decoder
tls
trace_events
tty
url
util
v8
vm
wasi
worker_threads
zlib