I have a code like this in javascript:
var func = function(){
console.log('hello moto');
};
func.another = function(){
console.log('another method outside function');
};
func(); // output: hello moto
func.another() // output: another method outside function
I still don't know how to call this one. But I would like to use some method sticking into function name like that. I am wondering about the capability of this method on all browser. I test with Chrome + Safari + Firefox (all current version). It worked pretty well.
Does that code work well on all major browsers? Thanks!