I have my loop as this in my .ejs file, grades is an array of objects coming from express route
<% for(const grade of grades){ %>
<%= grade.year %>
<% } %>
Is there any way I could reverse this array, I need the array to be started from the end. Can anyone help me here...
grades.reverse()? developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…