title: javascript loop through an element in an object
body: <p>I feel guilty asking this, but alas i'm having trouble pulling out and listing a specific element within an array of objects and was wondering if somebody had a better idea of how to loop through and find these. </p>
  
  <p>The objects I have are called groups, and in the groups the elements I need listed are called passcode_field.</p>
  
  <p>Because what I need is nested within the actual object, I know I can't just have them displayed. I've always had a weakness in coding with loops.</p>
  
  <p>Here's what i've tried. </p>
  
  <pre><code>for (passcode_field in groups) {
    groups.passcode_field
  }
  </code></pre>
  
  <p>This is not getting me what I need. Would anybody be able to take a crack at what I need with this one here?</p>