title: Password should not start with number
body: <p>I want that passoword should not start with number but its not working as expected.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var input = prompt("Enter password");
  var nums = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
  
  for (var i = 0; i &lt; nums.length; i++) {
    if (input.charAt(0) != nums[i]) {
      console.log("password is valid");
      break;
    } else
      console.log("Password should not start with number");
  }</code></pre>
  </div>
  </div>
  </p>