title: Javascript - Find middle value of user inputted numbers
body: <p>I'm having trouble figuring this out, and I think there's probably an easy solution but I'm just not wording it correct.</p>
  
  <p>I know how to find the max value of 3 inputted numbers.</p>
  
  <pre><code>largest = Math.max(number1, number2, number3);  // this code finds largest number
  </code></pre>
  
  <p>I know how to find smallest number</p>
  
  <pre><code>smallest = Math.min(number1, number2, number3); //smallest number
  </code></pre>
  
  <p>What I can't figure out is how to find the middle number</p>
  
  <p>So when the user puts in 3 numbers, say 9, 6, 12 (in that order)</p>
  
  <pre><code>number1= 9 //first number user entered
  number2 = 6 // second number user entered
  number3 = 12 // third number user entered
  </code></pre>
  
  <p>Right now I have code to find the smallest and the largest, 6 and 12.  But I don't know how to call the middle.  Is there a Math.middle function I can call.  I'm not looking for the middle element in an array, I just want the middle value of the 3 numbers I input. </p>
  
  <p>Hopefully that makes sense.</p>