how to use local variable in other functions
<p>This is my code:</p>

<pre><code>var shuffle = function(x) {
    var deck = [];
    deck.push(x);

    return deck;
};

var Placemat = function() {
    var card1 = deck.shift();
    var card2 = deck.shift();
}
</code></pre>

<p>By returning deck in <code>shuffle()</code> like this, can I use it in <code>Placemat()</code>? If not, how can I do it?</p>
