Run JavaScript Everywhere

Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers write command line tools and server-side scripts outside of a browser.

Download Node.js (LTS)Download Node.js (LTS)Downloads Node.js v20.11.11 with long-term support. Node.js can also be installed via package managers.Want new features sooner? Get Node.js v21.6.21 instead.
import { createServer } from 'node:http';

const server = createServer((req, res) => {
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.end('Hello World!\n');
});

// starts a simple http server locally on port 3000
server.listen(3000, '127.0.0.1', () => {
  console.log('Listening on 127.0.0.1:3000');
});

Learn more what Node.js is able to offer with our Learning materials.