title: Res.Render is not a function error in node.js
body: <p>I am getting an "res.render is not a function error" in the Windows 10 Command Prompt when I try to run my node.js code.</p>
  
  <p>What is causing this error and how can I get rid of it?</p>
  
  <p>Here is my .js file:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/*eslint-env node*/
  
  //------------------------------------------------------------------------------
  // node.js starter application for Bluemix
  //------------------------------------------------------------------------------
  
  // HTTP request - duas alternativas
  var http = require('http');
  var request = require('request');
  
  // cfenv provides access to your Cloud Foundry environment
  // for more info, see: https://www.npmjs.com/package/cfenv
  var cfenv = require('cfenv');
  
  //chama o express, que abre o servidor
  var express = require('express');
  
  // create a new express server 
  var app = express();
  
  // serve the files out of ./public as our main files
  app.use(express.static(__dirname + '/public'));
  
  // get the app environment from Cloud Foundry
  var appEnv = cfenv.getAppEnv();
  
  // start server on the specified port and binding host
  app.listen(appEnv.port, '0.0.0.0', function() {
      // print a message when the server starts listening
      console.log("server starting on " + appEnv.url);
  });
  
  
  app.get('/home1', function(res){
      http.get('http://developers.agenciaideias.com.br/cotacoes/json', function(res){
    var body = '';
    res.on('data', function(chunk){
     body += chunk;
    });
    res.on('end', function(){
     var json = JSON.parse(body);
     var cotacao = json["bovespa"]["cotacao"];
     var CotacaoDolar= json["dolar"]["cotacao"];
     var VariacaoDolar=json["dolar"]["variacao"];
     var CotacaoEuro=json["euro"]["cotacao"];
     var VariacaoEuro=json["euro"]["variacao"];
     var Atualizacao=json["atualizacao"];
     
    
    res.render('cotacao.jade',{title:'Hey', message:'Sua cotação foi de'});
   
    
    });
   });
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>Error: <a href="https://i.stack.imgur.com/3wBg3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3wBg3.png" alt="Error Scrren"></a></p>