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
Aaron Noble
6,559 PointsI'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.
Aaron Noble
6,559 Pointssorry, here is the snapshot:
2 Answers
KRIS NIKOLAISEN
54,974 PointsYour 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
Aaron Noble
6,559 PointsThank you! That fixed it!
KRIS NIKOLAISEN
54,974 PointsKRIS NIKOLAISEN
54,974 PointsCan you post a snapshot of your workspace? It is the camera icon in the upper right corner.