JSFiddle - React, Tailwind, and code Playground
by Karan1412
HTML
<p id="arrayElements"></p>
<input type="button" id="myButton" Value="Show Array Elements"/>
JavaScript
var myArray = new Array();
myArray.push("Hello World");
myArray.push("Cheers to Life !!");
$("#myButton").click(function()
{
$("#arrayElements").text(myArray);
});