Answers for "using if loops in ejs"

35

ejs if else

<h1>Hey <%= title.toUpperCase() %>, Welcome </h1>

<% if(title.toLowerCase() === "Rabbit"){ %>
<p>Welcome Code_Breaker!</p>
<% } else { %>
<p>You are not Code_Breaker</p>
<% } %>
Posted by: Guest on December-12-2020
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

Code answers related to "Javascript"

Browse Popular Code Answers by Language