For example, if I have a file called functions.ejs with this method in it -
<%
myFunction = (msg) => { %>
<h1> <%= msg %> </h1>
<% } %>
This method returns nothing when called, with or without using 'return'. Of course you can return html as a string but is there a way to return html like this with EJS? I know this method works in PHP.
If this is impossible, can anyone explain why and if there are other ways to do this in javascript?