Smallest number in array and it position <p>What I am trying to achieve is to find smallest number in array and it 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="http://stackoverflow.com/questions/8934877/obtain-smallest-value-from-array-in-javascript">Obtain smallest value from array in Javascript?</a> , but this way does not gives me a number position in array. Any tips, or code snippets are appreciated. Thanks.</p>