title: Nodejs loop through array / object
body: <p>I have an array with object inside, it looks like: </p>
  
  <pre><code>{
  "result":{
  "items":[
  {
  "id":1,
  "name":"item_name_1",
  },
  {
  "id":2,
  "name":"item_name_2",
  },
  {
  "id":3,
  "name":"item_name_3",
  }
  ]
  ,
  "status":200
  }
  }
  </code></pre>
  
  <p>What I need, is the way how to go through this stuff and get ID and Name for each item. I tried to for, but all I got is a lot of numbers or nothing. </p>
  
  <p>And an other question, can you please explain what is the difference between array and object in JS. (only if you can/want).</p>
  
  <p>Thank you!</p>