title: NodeJs and Ejs Pass Arrays to page
body: <p>I am trying to pass an array to an .ejs page, however when I try use</p>
  
  <pre><code>var test ="&lt;%= data %&gt;";
  console.log(test);
  </code></pre>
  
  <p>I get the output </p>
  
  <pre><code>[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object
  </code></pre>
  
  <p>Console.log on the nodejs file works fine, but its when I try console.log client side it messes up.</p>