title: EJS array in JS function
body: <p>I have a <code>scores</code> array in my database.
  I want to extract maximum value from that array in my ejs webpage.</p>
  
  <p>I am not sure but tried the following code:</p>
  
  <pre><code>&lt;div&gt;
         &lt;%-Math.max(user.scores)%&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This not giving the desired result.</p>
  
  <p>For eg if the <code>scores</code> array is [1, 4, 99, 2, 7], it should give me 99 on my webpage.</p>