pass data from node to frontend js code example
Example: send variable data from node js to front end javascript
<script>
window.app = <%- JSON.stringify(data) %>
</script>
<script>
window.app = <%- JSON.stringify(data) %>
</script>