0
I’m starting to study Ode now, and I’m already facing this problem. Follow the code:
var http = require('http')
http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type': 'Text/plain'})
res.end('Sou um servidor criado pelo Node.js!')
}).listen(3000, '127.0.0.1')
When I run "Node Node-server" on the terminal nothing happens. There is some error in the code?