<%- include("partials/header") %>
<p> this is main page</p>
<% let cpp= 6 %>
<% for (let i=0;i<cpp;i++){ %>
<div class="card">
<li><%= cards[i].name %></li>
<li><%= cards[i].price %></li>
<li><%= cards[i].title %></li>
<li><%= cards[i].inStore %></li>
<li><%= cards[i].code %></li>
</div>
<% } %>
<div>button id="next">load more</button></div>
<%- include("partials/footer") %>
How can I update the value of cpp
from 6 to 12 when the button with id="next" is clicked?