JSFiddle - React, Tailwind, and code Playground

JavaScript

var person = {
    firstName: "John",
    lastName : "Doe",
    id       :  5566
};
var stringa= "lastName";
alert(person.stringa);