JSFiddle - React, Tailwind, and code Playground

by John Peebles

HTML

<div id="test"></div>

JavaScript

$(document).ready(function(){
other();
});
function other() {
  var testing=new Array('hello','world');
  test(testing); 
}
function test(example) {
  console.log(example[0] + " " + example[1]);
  $("#test").append(example[0]+" "+ example[1]);
}