Why does this function return as undefined?
<pre><code>String.prototype.parse = function(f) {
    alert(this.replace(f, ""));
};
var a = "Hello World";
parse.apply(a, ["Hello"]);
</code></pre>

<p>Is the code correct?</p>
