I am having this Code the problem is that the line which has <%= propOfProp%>
does't print anything while if I replaced it with console.log(propOfProp)
, it will work
<% for (var x in data){ %>
<% if(data.hasOwnProperty(x)){ %>
<% var obj = data[x]; %>
<% for( var prop in obj){ %>
<% if(obj.hasOwnProperty(prop)){ %>
<% if(isNaN(prop)){ %>
<% findName([prop],function(err,data){ %>
<% for(var h in data[0]) {%>
<% var obj2 = data[0][h]; %>
<% for (propOfProp in obj2) { %>
<% if(isNaN(propOfProp)){ %>
<%= propOfProp%>
<% } }%>
<% } %>
<% }); %>
<% } %>
<% } %>
<% } %>
<% } } %>