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

Jeffrey Sevinga
Jeffrey Sevinga
8,497 Points

Hi, im doing createSpaces() Method Solution with Ashley Boucher i don't get solutions on my own

Hi, im doing createSpaces() Method Solution with Ashley Boucher for full stack javascript.

The thing is i do understand it when she explains why and how she does it. But i am not getting to that answer on my own. I get maybe half way with loops and arrays but push it the wrong time or don't create empty arrays when i should.

So my question is does this mean i need to first learn something else until i can figure out the problems for myself. Cause now its doing half of it and then copying the correct answer from Ashley. The courses before i would at least get a proper answer to the problem on my own. Feels like a wall and i don't know if i should just keep going and wait for that Aha.. moment or learn some other basics first.

Does Algorithms and Data Structures help with thinking better about these kinds of things?

Would love to know how people think about this.

1 Answer

Hi Jeffery, very good question, I think you're on the right track but need some more practice. try things on your own for 10m if you don't get it, look at other people's code and learn what you did wrong.

Algorithms and Data Structures are a very important part of any programming language. if you work pro, you will need to know about it. not necessarily everything but it's important.