VIVA Questions
NODE.JS What is Node.js? Node.js is a runtime environment that allows JavaScript to run on the server side. Is Node.js single-threaded? Yes, but it uses an event loop for handling multiple requests asynchronously. What is npm? Node Package Manager used to install libraries and dependencies. What is a module in Node.js? A reusable block of code (file) that can be imported. Difference between require and import? require is CommonJS, import is ES6 module syntax. What is package.json? It contains project metadata and dependencies. What is event-driven programming? Execution based on events like clicks, requests, etc. What is the event loop? It handles asynchronous operations in Node.js. What is callback function? A function passed as argument and executed later. What is middleware? Functions that process requests before response. What is REPL? Read-Eval-Print Loop for executing JS code interactively. What is fs module? File system module for file op...