title: Finding the closest number in a random set
body: <p>Say I got a set of 10 random numbers between 0 and 100.</p>
  
  <p>An operator gives me also a random number between 0 and 100.
  Then I got to find the number in the set that is the closest from the number the operator gave me.</p>
  
  <h2>example</h2>
  
  <p>set = {1,10,34,39,69,89,94,96,98,100}</p>
  
  <p>operator number = 45</p>
  
  <p>return = 39</p>
  
  <p>And how do translate this into code? (javascript or something)</p>