title: How do I iterate through object in order to display the values on EJS
body: <p>I have a problem with iterating objects on EJS. I am connected to a DB on the backend, and I can console log the objects but when I run it through the front end, I get a result of [Object]</p>
  <p>Here is the code on my code in the backend</p>
  <pre><code>app.get('/usageData', (req, res) =&gt; {
  
      tableSvc.queryEntities('usageData', query, null, function (error, result, response) {
          if (!error) {
  
              Object.keys(result).forEach(function(key){
                  const final=result[key]
                  res.render(&quot;usage&quot;,{final})
              })
          } else {
              console.log(error)
          }
      });
  });
  </code></pre>
  <p>And on EJS:</p>
  <pre><code>&lt;ul&gt;
    &lt;table &gt;        
        &lt;table class=&quot;table table-hover&quot;&gt;
            &lt;thead&gt;
              &lt;tr class=&quot;indexs&quot;&gt;
                &lt;th scope=&quot;col&quot;&gt;PartitionKey&lt;/th&gt;
                &lt;th scope=&quot;col&quot;&gt;RowKey&lt;/th&gt;
                &lt;th scope=&quot;col&quot;&gt;Action&lt;/th&gt;
                &lt;th scope=&quot;col&quot;&gt;SelectedReports&lt;/th&gt;
                &lt;th scope=&quot;col&quot;&gt;reportInterval&lt;/th&gt;
              &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
              &lt;tr&gt;
                &lt;% for(var i in final) { %&gt;  
                  &lt;tr style=&quot;font-size: 15px&quot;&gt;
                    &lt;td&gt;&lt;%= final[i].PartitionKey %&gt;&amp;ensp;&lt;/td&gt;
                    &lt;td&gt;&lt;%= final[i].RowKey %&gt;&amp;ensp;&lt;/td&gt;
                    &lt;td&gt;&lt;%= final[i].Action %&gt;&amp;ensp;&lt;/td&gt;
                    &lt;td&gt;&lt;%= final[i].SelectedReports %&gt;&amp;ensp;&lt;/td&gt;
                    &lt;td&gt;&lt;%= final[i].reportInterval %&gt;&amp;ensp;&lt;/td&gt;
                   &lt;/tr&gt;
                &lt;% } %&gt;
  
              &lt;/tr&gt;
            &lt;/tbody&gt;
          &lt;/table&gt;
    &lt;/table&gt;
  &lt;/ul&gt;
  </code></pre>
  <p><img src="https://i.stack.imgur.com/tMtsz.png" alt="What is displaying on localhost" /></p>