MyArray consists of an array of objects. By using forEach(), I am able to retrieve the individual objects from it. However, I have encountered an issue where the text from each object is being displayed on top of each other on the page. Is there a way for me to style them in a manner that they appear uniform and spread out from each other?
myArray.forEach(function(myArraysObj) {
var text = $('<div></div>').addClass('text').text(myArraysObj.text);
$('body').append(text);