How can I comment the EJS code (JS node) without getting an error

There is two solutions:

  • <%# comment %> (it’s from documentation)
  • <%/* comment */%> (it works too, but it’s pretty ugly and uncomfortable for use)

I don’t see a difference between those examples except highlighting syntax in an IDE (example with the Brackets IDE).

Enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)