JSFiddle - React, Tailwind, and code Playground

JavaScript

var bob = {
    firstName: "Bob",
    lastName: "Jones",
    phoneNumber: "(650) 777-7777",
    email: "bob.jones@example.com"
};

var mary = {
    firstName: "Mary",
    lastName: "Johnson",
    phoneNumber: "(650) 888 - 8888",
    email: "mary.johnson@example.com"
}

var contact = [bob, mary];

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