title: Node js console.log is not showing anything
body: <p>I'm trying to scrap a webpage using node js.I think I've written the code and was able to run it without any errors but the problem is the console doesn't print anything no matter what I do.It is not showing any errors. What's the reason? </p>
  
  <p>Here is the content that I want to scrap:
  <a href="https://paste.ee/r/b3yrn" rel="nofollow">https://paste.ee/r/b3yrn</a></p>
  
  <pre><code>var fs         = require('fs');
  var request    = require('request');
  var cheerio    = require('cheerio');
  
  var htmlString = fs.readFileSync('scrap.html').toString();
  var $          = cheerio.load(htmlString);
  var json = [];
  
  $('body &gt; table:nth-child(1) &gt; tbody &gt; tr:nth-child(3) &gt; td &gt; table &gt; tbody &gt; tr &gt; td:nth-child(2) &gt; table &gt; tbody &gt; tr &gt; td &gt; table &gt; tbody &gt; tr').each(function(i, element) {
      json.push({});
      json[i].range = $(this).text().trim();
  
  });
  
  
  console.log(json);
  </code></pre>