I am trying to passe an array from ejs to JavaScript. I can get to the values inside ejs but not from JavaScript. all the time i get undefined because the contents of the variab
i found a solution it's work, but i don't know if there is other ways to do it. i change
var test = '<%- level_tab %>';
by this loop,
<% for(var j=0; j level_tab.push('<%- level_tab[j]%>'); <%}%>