title: Looping through an array of objects successfully
body: <p>I have an array of object and i want to loop through from this with the help of foreach but I got array I dont know why.<br>
  I want to display my array in a div.  </p>
  
  <p>This is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var questions = [{
      question: 'my name is?',
      answere: ['jame', 'rock', 'batista', 'micheal'],
      correctAnswere: 'Ahmad'
    },
    {
      question: 'your name is?',
      answere: ['jhon', 'rock', 'watson', 'cook'],
      correctAnswere: 'Ahmad'
    }];
  var getquiz = document.getElementById('demo')
  questions.forEach(function(arrayitem) {
    getquiz = getquiz.innerHTML + arrayitem.question + "&lt;br&gt;";
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="getquiz"&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>