title: Express.js send data to view not sent, What went wrong
body: <p>I want to pass my products array to html page.</p>
  
  <pre><code>app.get("/", function(req, res){
      res.render(__dirname+ "/product.html",{data: Product_Array_fromDatabase});
  })
  </code></pre>
  
  <p>At client side in HTML page am trying to view / will loop it</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var data = JSON.stringify(data);
     alert(data) // Says Undefined
  &lt;/script&gt;
  </code></pre>
  
  <p>I am not getting value of data? Any help?</p>