title: How can I get a value out of a jQuery object?
body: <p>I am returning some data <em>(example below)</em> and saving it to a jQuery object <em>(or is this an array and I am confusing the two?)</em> when I log the variable that is the object it has the values I am looking for but how do I access the data inside this object?</p>
  
  <p><strong>code</strong></p>
  
  <pre><code>$itemPosition = {
      'top': $item.offset().top,
      'left':$item.offset().left
  },
  
  console.log($itemPosition);
  </code></pre>
  
  <p>This would log out <em>(the in this case expected)</em> <code>top: 0</code> &amp; <code>left: 490</code>.</p>
  
  <p>But how can I know work with those values?</p>
  
  <p><em>Also, while this it is probably obvious I am still in the early stages of learning jQuery/Javascript rest assured that reference books are on their way, but so far the SO community has been invaluable to my learning, so thanks for reading!</em></p>
  
  <p>J.</p>