title: Collect outerHeights of div-elements, store them in an array and identify the highest number.
body: <p>I want to collect three numbers and then identify the highest number. The numbers are the outer heights of div-elements. I tried to store the outer heights in an array but unfortunately I don't know how to do so. This is how I started: </p>
  
  <pre><code>$ var heights = [];
  
  $('.elements').each(function(i){
     $(this).outerHeight(trainingshoehen[i]);
  }); 
  </code></pre>
  
  <p>But it does not work. How can I write these numbers into an array and in the second step how can I compare these numbers best?</p>
  
  <p>Would be nice to get any tips! Thnak you. </p>