•  
     

Telefone de Mary - JavaScript

Código: Selecionar todos

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 contacts = [bob,mary];
console.log(contacts[1].phoneNumber);


(650) 888 - 8888