var functor=function(){ //test } functor.prop=1; console.log(functor);
this only show the function part of the functor, cannot show the prope
To output obj:
console.log(obj, null, 4)
You might get even better results if you try:
console.log(JSON.stringify(obj, null, 4));
You might get better results if you try:
console.log(JSON.stringify(functor));