PureCode Software interview question

Core Concepts: What is Node.js, and how does it differ from traditional server-side technologies? Event Loop: Can you explain the Node.js event loop and how it handles asynchronous operations? Modules: How do you handle modules in Node.js? Provide examples of how to import and export modules. File System: How would you read and write files in Node.js? Provide an example using the fs module. Basics: What is MongoDB, and what are the advantages of using a NoSQL database over a SQL database? Connection: How do you set up a connection between Node.js and MongoDB using Mongoose? Provide an example. Schema Design: Explain how you design a schema in MongoDB using Mongoose. Provide an example schema for a simple user model.