Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

I'm not sure how to read these errors in the console.

I've declared an array 'newTeachers' and then used it to pass an argument through the function 'addNewTeachers'. I'm really confused on why it is showing this error on line 57. Can someone give me guidance with this error? Thank you, Aaron Noble.

Can you post a snapshot of your workspace? It is the camera icon in the upper right corner.

sorry, here is the snapshot:

https://w.trhou.se/6qyq27uvko

2 Answers

Your closing bracket for newTeachers is all the way at the end of your code (line 63). Delete it there and add it here:

let newTeachers = [
    {
        name: 'James',
        topicArea: 'Javascript'
    },
    {
        name: 'Treasure',
        topicArea: 'Javascript'
    }
];  //<----- missing

Thank you! That fixed it!