Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 548 Bytes

what_is_nodejs.md

File metadata and controls

21 lines (14 loc) · 548 Bytes

What is Node.js?

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to run JavaScript code outside of a browser, typically for building server-side applications.

Example:

// A simple Node.js server
const http = require('http');
const server = http.createServer((req, res) => {
  res.write('Hello, world!');
  res.end();
});
server.listen(3000);

Tags: basic, JavaScript, runtime