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 JavaScript Arrays Store Multiple Values in an Array Copy and Combine Arrays with the Spread Operator

When using the spread operator to declare the instruments const, the `console.log(instruments);` returns undefined. Why?

Just started this module and seem to make no progress. Checking the code in the console (google chorme, firefox dev or mozilla), I rarely get the same return as the teacher does in the video. I have corrected every spelling, I have re-re-re-done the exercises ... When using the spread operator const instruments = [...brass, ...woodwind]; the console.log(instruments); returns undefined. What am I doing Wrong, please?

1 Answer

Robert Manolis
STAFF
Robert Manolis
Treehouse Guest Teacher

Hi Sonia Nitu, hard to say what the problem might be or offer any suggestions without more information. Please share a link to the video or step you are working on. And share a snapshot of your workspaces, which you can do by clicking on the camera icon near the upper right of the workspace window. Then we can take a closer look at the situation and try to provide some helpful and actionable feedback. :thumbsup: