Edit in JSFiddle

var myArray = new Array();
myArray.push("Hello World");
myArray.push("Cheers to Life !!");

$("#myButton").click(function()
                     {
                         $("#arrayElements").text(myArray);
                     });
<p id="arrayElements"></p>
<input type="button" id="myButton" Value="Show Array Elements"/>