title: How to update DOM element with every loop iteration?
body: <p>here i want to update demox element with all iteration of jsoDemo,but i only get final element in array.How do i arrange loop so that i update one by one ?</p>
  
  <pre><code>function GETJSON() {
      for (var i = 0; i &lt; jsoDemo.length; i++) {
          var xxx = jsoDemo[i].name;
          console.log(xxx);
      }
      return document.getElementById("demoX").innerHTML = xxx;
      //break;
  }
  </code></pre>