Returning a value and then assigning it - possible race condition?
<p>If I had code like so - lets simplify it.</p>

<pre><code>someObj.newVal = returnSomVal();

function returnSomVal(){
    return grabproperVal();
}

function grabproperVal(){
    var someVal;
    //some js figuring to get proper value for somVal;
    return someVal
    someObj.newVal = setSomeCookie(someObj.newVal,'cookiename');
}
</code></pre>

<p>Could there exist a race condition in which this happens:</p>

<pre><code>someObj.newVal = setSomeCookie(someObj.newVal,'cookiename');
</code></pre>

<p>before this assignment happens:</p>

<pre><code>someObj.newVal = returnSomVal(); 
</code></pre>

<p>I am "sometimes" missing out on the var and I don't know if it is my testing methodology or perhaps there "is" a race condition happening. Just trying to narrow things down.</p>
