I have a syntax error when I trie to render this part of my template with EJS (on a node server).
The error is in this code part, I'm sure I have a pb with tags "<%" but I don't understand where.
<p>
<% tasks.map(task => ( %>
<%= task %>
<% )) %>
</p>
Here is my full template :
<h1>My todolist</h1>
<p><% tasks.map(task => ( %>
<%= task %>
<% )) %>
</p>
<form method="post" action="/task">
<input type="text" placeholder="Add task" name="newTask" />
<button type="submit">Add</button>
</form>
<%= task %>.