Create multiple elements
问题 JavaScript var textBlock = document.createElement('div'); textBlock.setAttribute('class', 'finalBlock'); var addFinalBlock = document.getElementsByClassName('block')[0]; addFinalBlock.appendChild(textBlock); textBlock.innerHTML = "Make this block a text block"; // ------- var textBlock2 = document.createElement('div'); textBlock2.setAttribute('class', 'finalBlock'); var addFinalBlock2 = document.getElementsByClassName('block')[0]; addFinalBlock2.appendChild(textBlock2); textBlock2.innerHTML =