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 trialLiam Liam
Courses Plus Student 384 PointsWhy todo+=(\space)["string"] or todo(\space)+=["string"] will not work?
there's something stange about the += operator, you have to either leave at least a space at each side or no space at all. Otherwise, if you leave at lease one space at one side but no space at the other likt the title suggested, it will not work. Why is that?
var x = ["good"] Works: x+=["bad"] x += ["bad"]
Not works: x +=["bad"] x+= ["bad"]