A little message for you
<%
if(notifications !== undefined && notifications.length > 0){
notifications.forEach((notification) => {
if(notification.type === "success") {
%>
<%- notification.message %>
<% } else if(notification.type === "warning") { %>
<%- notification.message %>
<% } else if(notification.type === "error") { %>
<%- notification.message %>
<% } else { %>
<%- notification.message %>
<% }
});
}
%>