Which of the following template engines uses a tag-based syntax to embed JavaScript code into HTML?

  • Handlebars
  • EJS (Embedded JavaScript)
  • Pug
  • Mustache
EJS (Embedded JavaScript) is a template engine that uses a tag-based syntax to embed JavaScript code into HTML. This allows developers to include dynamic content and logic directly within HTML templates using <% %> tags. Handlebars, Pug, and Mustache have their own syntax and do not use this tag-based approach.
Add your answer
Loading...

Leave a comment

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