You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
194 B
JavaScript

import { createServer } from 'http';
const server = createServer((req, res) => {
res.end('My First Web Server\n');
});
server.listen(4242, () => {
console.log('Server is running...');
});