For example, if my script is…
function cool() {
function yes() { alert('yes'); }
function wow() { alert('wow'); }
}
And I use cool.toString(); then I get the entire function as a string.
But what do I have to do to just get the inner-contents as a string:
function yes() { alert('yes'); }
function wow() { alert('wow'); }
toStringto get the entire function, like just did in your example{with an empty string.Like this: