Nothing showing in the console despite correct code


Hello Everyone,
So my code "works" seemingly, as it allows me to pass onto the next lesson, however nothing shows in the console, and I cannot continue my programming quest without validation from the box. Can anyone point out anything in my code that may potentially be obstructing the box from showing what it needs to show?

function Person(firstName, lastName, phoneNumber, email) {
    this.firstName = firstName;
    this.lastName = lastName;
    this.phoneNumber = phoneNumber; = email

var bob = new Person("Bob", "Jones", "(650) 777-7777", "");

var mary = new Person("Mary", "Johnson", "(650) 888-8888", "");

var contacts = {bob, mary}

function printPerson(person) {
    console.log(this.firstName + " " + this.lastName);

var list = function() {
    var contactsLength = contacts.length
    for (i=0; i < contactsLength; i++) {



The context of the function is person, not this.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.