Prev Next

Web / NodeJS Interview questions

1. What is Node.js?

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

Read full answer

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

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

Read full answer

3. 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.

Read full answer

4. Is Node.js open source?

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

Application that involves cpu processing.

Read full answer

6. 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.

Read full answer

7. Find the version of an installed npm package.

Run npm list <package> in the project, or npm list -g <package> for a global install. npm outdated and package-lock.json also show resolved versions.

Read full answer

8. 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.

Read full answer

9. 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.

Read full answer

10. 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....

Read full answer

11. What is NestJS?

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

Read full answer

12. What is the inspector module in NodeJS?

Core module in Node.JS. Uses the Chrome DevTools (CDT) protocol.

Read full answer

13. Difference: npm vs npx.

Npm is a tool that use to install packages. Npx is a tool that use to execute node packages.

Read full answer

14. Compare npm vs yarn.

Both npm and Yarn are great package managers for Node.js and Javascript. Yarn was built by Facebook to solve major problems they faced with npm, such as the slower installation of packages and to address few security issues in npm....

Read full answer

«
»

Comments & Discussions