How to Call a Variable from another Function within the same Object?
<p>I just wish to know if there is a simple way to call a variable from another function within the same Object?  </p>

<pre><code>var comedy = {
schadenfreude: function() {
    var number = prompt("Provide me a number.");
},
irony: function() {
    this.schadenfreude();
    for(i = 0; i &lt; this.schadenfreude.number(); i++){
        return i;
    }
}
};
console.log(comedy.irony());
</code></pre>

<p>In this example I wish to grab the <code>var number</code> from the <code>schadenfreude function</code> and use that prompted number in my for loop with the <code>irony function</code>.  Thanks for the help.</p>
