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