<% data.hobbies.forEach(function(item){ %>
<li><%= item %></li>
<% });%>
</ul>
in this code, how are
<%
used ? i mean they are unlike any other tag i have read so far .
Check template engines
It's executing Ruby code in ERB <% #block of code to be executed %> <%= "block of code to be executed and returned to the html %>
Обсуждают сегодня