JSFiddle - React, Tailwind, and code Playground

by IagoSRL

HTML

<div id="log"></div>

JavaScript

var log = $('#log');

var list = [1, new Date(), { name: 'Me' }];

list.forEach(function(item, index) {
    var msg = 'At ' + index + ', Item ' + JSON.stringify(item);
    msg += ' is original? ' + (item === list[index]);
    console.log(msg);
    log.append(msg + '<br/>');
});