In EJS, to output data to the template, you use the <%= %> syntax, whereas to execute JavaScript code, you use the ______ syntax.

  • <%# %>
  • <%$ %>
  • <%* %>
  • <% %>
In EJS (Embedded JavaScript), you use <%= %> to output data to the template and <% %> to execute JavaScript code within the template. The other options are not valid EJS syntax.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *