I know that if you create an object in JS, you can do it like this:
var obj = { toString: function () { return "мой обьект" } }; Wherein:
 alert(obj); // Выводит "мой обьект" The question is how after the function is declared, so that calling it without () returns not the function code, but what you need ie:
 function myFunc(){ // Здесь секретный код } How to make alert(myFunc); did not output the function myFunc(){//Здесь секретный код} , but what I want, for example, the line "My secret function"?