Answer the question
In order to leave comments, you need to log in
How to stop server/script in Node js?
const http = require("http")
http.createServer(function(request, response) {
response.end("Hello Node.js!")
}).listen(3000, "127.0.0.1", function() {
console.log("Сервер открыт по порту: 3000")
})
// В cmd ввожу: node main.js
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question