Help the world stop coronavirus! Stay home!

Prev Next

Angular / Node js

Could not find what you were looking for? send us the question and we would be happy to answer your question.

Write the "Hello World" program using node.js.

/* Hello World! program using Node.js */
console.log("Hello World!");

What is Node.js?

Node.js is a powerful server side JavaScript based framework/platform built on Google Chrome's JavaScript V8 Engine.

Practical uses of node.js.

It enables the development of I/O intensive web applications like video streaming sites, single-page applications (SPA) and other web applications.

Is Node.js open source?


What type of Applications that node.js is not recommended for?

Application that involves cpu processing.

What is npm?

npm makes it easy for JavaScript developers to share and reuse code, and it makes it easy to update the code that you're sharing.

Find the version of an installed npm package.

Use npm list for local packages or npm list -g for globally installed packages.

To find the version of the particular package given that the package name is known, use the command npm list package-name.

what is transpiling?

Transpiling refers to the process of taking source code written in one language and transforming into another language that has a similar level of abstraction.

Mention few logging libraries that you can use in your nodeJS project.

The below logging npm libraries are available for NodeJS projects.

  • Log4js,
  • Winston,
  • debug,
  • and Bunyan.
How do I enable gzip compression for my Node.js express responses?

Use the compression middleware for gzip compression in your Express app. Gzip compressing decrease the size of the response body and hence increase the speed of a web app.

First, install the npm package in your project for compression:

$ npm i compression --save

You can use the module in your application.

var compression = require('compression')
var express = require('express')
var app = express()

What is NestJS?

NestJS is a progressive Node.js framework for building efficient, reliable and scalable server-side applications.

What is the inspector module in NodeJS?
  • Core module in Node.JS.
  • Uses the Chrome DevTools (CDT) protocol.
  • Can connect to local or remote V8 engine.
Nativescript interview questions

Comments & Discussions