Update function's internal properties using a function outside it's scope in Javascript?
<p>Super simple abstracted example, but I'm wondering if there is a way I can invoke <code>updateAge()</code> from within <code>doMainStuff</code> to update the <code>person</code> object's <code>age</code> property? Is this where call() or apply() come into play?</p>

<pre><code>function doMainStuff() {
    var person = {
        name: 'Bob',
        age: 55
    }

    updateAge();
}


function updateAge(){
    person.age = 24;
}
</code></pre>
