Js error in NodeJS running server.js

  node.js, question

After testing with sample code, how can I report an error?

var http = require('http');
 http.createServer(function (request, response) {
 //Send HTTP Header
 // HTTP status value: 200: OK
 //content type: text/plain
 response.writeHead(200, {'Content-Type': 'text/plain'});
 //Send response data "Hello World"
 response.end('Hello World\n');
 //The terminal prints the following information
 console.log('Server running at');


The path should be wrong, under which folder is your server.js located?