Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<h1>Fruits (ejs)</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Price</th>
<th>Stock</th>
</tr>
</thead>
<tbody>
<% for (var i = 0; i < fruits.length; i++) { %>
<tr>
<td><%= fruits[i].name %></td>
<td>&yen;<%= fruits[i].price %></td>
<td><%= fruits[i].stock %></td>
</tr>
<% } %>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment