title: Smallest number in array and its position
body: <p>What I am trying to achieve is to find smallest number in array and its initial position. Here's an example what it should do:</p>
  
  <pre><code>temp = new Array();
  temp[0] = 43;
  temp[1] = 3;
  temp[2] = 23;
  </code></pre>
  
  <p>So in the end I should know number 3 and position 1. I also had a look here: <a href="https://stackoverflow.com/questions/8934877/obtain-smallest-value-from-array-in-javascript">Obtain smallest value from array in Javascript?</a>, but this way does not give me a number position in the array. Any tips, or code snippets are appreciated.</p>