What is Node.js?
Node.js is an open-source, cross-platform runtime environment that allows you to run
JavaScript on the server side. It’s built on the V8 JavaScript engine developed by Google
(the same one used in Chrome). With Node.js, you can build scalable and high-performance
web applications, APIs, and even real-time services like chat apps.
📌 Example:
If you write a simple HTTP server in Node.js, you can serve a webpage without using a
traditional web server like Apache:
const http = require('http');
http.createServer((req, res) => {
res.end('Hello from Node.js server!');
}).listen(3000);