Why does console tell me that .filter is not a function? : <pre><code>var str = "I am a string.";

console.log(str.split(''));

var fil = function(val){
return val !== "a";
};

console.log(str.filter(fil));
</code></pre>

<p>When I run this, it says the str.filter is not a function.</p>
