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.
Loading...
Related Quiz
- The method '______' is used to read data from a readable stream in Node.js.
- In JavaScript, the Symbol data type was introduced in ________.
- Pug was formerly known as ______ before it was renamed.
- How does the Event Loop mechanism in Node.js contribute to its non-blocking I/O feature, impacting performance positively?
- Which of the following is true regarding the 'this' keyword inside an arrow function?