How can I console.log the data coming from the backend in pug?
For instance, this is my backend in expressjs:
res.render("streams/show", {
stream: cleanStream
});
in show.pug, I want to inspect the data from steam:
- var species = stream.species;
- var fields = [];
- for (var key in species) fields.push(key)
- console.log(fields)
I can't see anything on my Developer Tool on my Chrome.
Any ideas?