expressjs pass value to other page 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>