Confirming that only numbers are contained in a string in Javascript
<p>How can I get this code to return just the one false alert, since it contains a number when I'm checking that what's in the string "name" should all be lowercase alphas?</p>

<pre><code>var name = "Bob1";
var i = 0; 
var name = name.toLowerCase()

for(i=0; i&lt;name.length; i++){
  if((name.charCodeAt(i)&gt;96) &amp;&amp; (name.charCodeAt(i)&lt;123)) {
    alert("true");
  } else {alert("false");}
}
</code></pre>
