JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

JavaScript

$(function () {
    var myObjects = [
        {
            id: 1,
            firstname: "Gandalf",
            lastname: "Greyhaem"
        },
        {
            id: 2,
            firstname: "Bilbo",
            lastname: "Baggins"
        },
        {
            id: 3,
            firstname: "Frodo",
            lastname: "Baggins"
        }
    ];
    $.each(myObjects, function () {
        console.log("ID: " + this.id);
        console.log("First Name: " + this.firstname);
        console.log("Last Name: " + this.lastname);
        console.log(" ");
    });
});