<% let pills = ["4/2","4/1","4","2","2/1","1","0"]; let i=0; pills.forEach(el => { let check = (el=="4")? "checked":""; %>
<%= el %>
>
<% i++; }); %>