Hey Guys I have been testing the water with node.js and I wrote a simple web-server program by Ryan Dahl.
//web-server.js
var http= require('http');
http.createServer(function(req,res){
res.writeHead(200, {'content-type':'text/plain'});
res.end("helo world \n");
});
s.listen(8000);
Weirdly, I get this error

As you can see, the first command is node-webserver.js
The second command is where the error is displayed
I do know however that node.js is not broken because the basic introductory program provided on the node.js still works as it is supposed to. Sorry for the massive error screenshot!
Thanks for any help!
s.listen(8000)- a typo?svariable. Usually it's written ashttp.createServer(function(req, res){...}).listen(8000);(chaining calls).