title: Javascript: Can I find the index of a number in an array based on a prompt input?
body: <p>Is there a way to use the input from a prompt as the index of an array, then create a new array without this number?</p>
  
  <p>What I have so far looks like this, and the index I get is -1:</p>
  
  <pre><code>var remNum = [1, 2, 3, 4, 5, 6, 7, 8, 9];
  var input = prompt("pick a number" + " ");
  var position = remNum.indexOf(input);
  alert("this is the index of your input: " + position);
  </code></pre>