Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
<% } %>
 
PREVIOUS NEXT
Tagged: #ejs
ADD COMMENT
Topic
Name
2+1 =