Answers for "ejs using for"

1

for loop in ejs

<% for(let count = 0; count <= 100; count++ ){ %>
	<br><%= count %>
    <%#  will output the numbers 1-100 %>
<% } %>
Posted by: Guest on June-27-2021
0

ejs tutorial

<ul>
  <% users.forEach(function(user){ %>
    <%- include('user/show', {user: user}); %>
  <% }); %>
</ul>
Posted by: Guest on March-17-2021

Browse Popular Code Answers by Language