JSFiddle - React, Tailwind, and code Playground

by Darby Rathbone

JavaScript

var testing = [];
for (x = 0; x < 2; x++) {
    var jsonArray1 = [{
        day: "monday",
        greetings: "hello"
    }, {
        day: "tuesday",
        greetings: "hi"
    }];
    testing = testing.concat(jsonArray1)
}
document.body.innerHTML = (testing.map(function (e) {
    return JSON.stringify(e);
}));