I’m using the Google Chrome console. Frustratingly, the following code
var f = function () {};
f.a = 1;
console.log(f);
will only log
function () {}
Why does it not print the properties of f, such as f.a and f.prototype? How can I print them?
Try
console.dir.