Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Node.js — Run JavaScript Everywhere
[go: Go Back, main page]

DiscoverNew migration guides

Run JavaScript Everywhere

Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.

Get Node.js®Get Node.js®Get security support
for EOL Node.js versions
Node.js is proudly supported by the partners above and more.
// server.mjs
import {  } from 'node:http';

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

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

// run with `node server.mjs`

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