how servers are created in js | Sololearn: Learn to code for FREE!


how servers are created in js

I do not know how to create a server in js, please help

4/9/2021 7:57:33 PM

Osadchy Daniel

7 Answers

New Answer


+2 Why to go other places if you have tutorial here only!! You can create server using nodejs !! What is nodejs how to use it? You will get all your answers here :) Be happy, All the best


You'll need Node.js for this. Here's a good guide for creating something very basic. Once you manage this and understand it, you can create something more complex with multiple routes which handle different request types. For that, you'll probably want Express.js


Osadchy Daniel Learn about Node.js


Oh, thanks. Grateful for the help ^_^



You can use node js. // try following code const http = require('http'); const requestListener = function (req, res) { res.writeHead(200); res.end('Hello, World!'); } const server = http.createServer(requestListener); server.listen(8080);