Javascript variable returning blank
<p>I am testing this code:</p>

<pre><code>var thecol = '';

// Note: I know that value.cat = '3'

if (value.cat === '1') {
        thecol = 'cat1';
    } else if (value.cat === '2') {
        thecol = 'cat2';
    } else if (value.cat === '3') {
        thecol = 'cat3';
    } else if (value.cat === '4') {
        thecol = 'cat4';
    } else if (value.cat === '5') {
        thecol = 'cat5';
    };

alert(thecol);
</code></pre>

<p>The alert is blank for some reason.</p>

<p>Any ideas why.</p>
