4/6 Unterminated Template Literal Error


#1

I have no idea what that error signal means. Here's my code for the two functions.

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

function list() {
    for(var i = 0; i < contacts.length; i++) {
        printPerson(contacts[i]);   
    }
}

list();

#2

It looks more like a site template error than anything. Are you getting the same error after a page refresh?


#3

Still not working, don't know what's wrong.


#4

I'm stuck on this too but it looks like you skipped step #2 in the instructions.


#5

check this out..!!
It worked for me..!

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

#7

I skipped it because it's unecessary