Why my javascript alert doesn't show up
<p>I tested the code below in google chrome but alert shows up why ? (I took it from <a href="http://msdn.microsoft.com/en-us/magazine/cc163419.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/magazine/cc163419.aspx</a>)</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
    &lt;title&gt;test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type="text/javascript"&gt;
function filter(pred, arr) {
    var len = arr.length;
    var filtered = []; // shorter version of new Array();
    // iterate through every element in the array...
    for (var i = 0; i &amp;lt; len; i++) {
        var val = arr[i];
        // if the element satisfies the predicate let it through
        if (pred(val)) {
            filtered.push(val);
        }
    }
    return filtered;
}

var someRandomNumbers = [12, 32, 1, 3, 2, 2, 234, 236, 632, 7, 8];
var numbersGreaterThan100 = filter(function (x) {
    return (x &gt; 100) ? true : false;
}, someRandomNumbers);

// displays 234, 236, 632
alert(numbersGreaterThan100);

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
