JSFiddle - React, Tailwind, and code Playground

JavaScript

var bob = {
    firstName: "Bob",
    lastName: "Jones",
    phoneNumber: "(650) 777-7777",
    email: "[email protected]"
};

var mary = {
    firstName: "Mary",
    lastName: "Johnson",
    phoneNumber: "(650) 888 - 8888",
    email: "[email protected]"
}

var contact = [bob, mary];

console.log(contact[1].phoneNumber);