Answers for "how to put condition 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

Code answers related to "how to put condition in ejs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language