title: JavaScript indexOf String Function 2nd argument is not working
body: <p>For some reason, my indexOf 2nd arg (where to start the search) is not working. It just always returns 4 or -1.
  Where string test = "Bob jr" and I am using built-in JavaScript console on about:blank:</p>
  
  <pre><code>&gt; var test = "Bob jr";
  &gt; test.indexOf('j', 0);
  &lt; 4 = $3
  &gt; test.indexOf('j', 1);
  &lt; 4 = $3
  &gt; test.indexOf('j', 12);
  &lt; -1 = $2
  </code></pre>
  
  <p>Why is this not working and how can I get it working?</p>