title: Node.js and express ReferenceError: response is not defined
body: <p>Here is my code </p>
  
  <pre><code>var express = require('express');
  var fs = require('fs');
  var config = JSON.parse(fs.readFileSync("./config.json"));
  console.log(config);
  var host = config.host;
  var port = config.port;
  
  var app = express.createServer();
  
  // use route
  app.use(app.router);
  
  // for static files this location
  app.use(express.static(__dirname));
  
  // root path
  app.get('/', function (request, response) {
  
      response.send("hello");
  });
  
  
  app.get("/id/:id", function (request, reponse) {
  
  
      var value = request.params.id;
      console.log(value);
      response.send(value.toString());
  
  });
  
  app.listen(port, host);
  </code></pre>
  
  <p>I can log whatever is the value after id in the url   127.0.0.1:3317/id/<strong>hello</strong></p>
  
  <p>Hello is printed in the console but there is a <strong>ReferenceError: response is not defined</strong>  error.</p>
  
  <p>Please Help me out</p>