JSFiddle - React, Tailwind, and code Playground

by Mahendran Sakkarai

HTML

<span id="output"></span>

JavaScript

var a = [1,2,3,4,5,6];
var b = a.join("&");
// Appending the output to the #output
var div = document.createElement('div');
div.className = 'row';
div.innerHTML = b;
document.getElementById('output').appendChild(div);