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
Justin Warren7,805 Points
affected by the code that follows it? Example - var apples =5 and then functions/code is written that affects and changes what "apples" is?
Also if anyone has any other good resources to supplement this learning. I just would like to have some very basic foundational knowledge, b/c I feel like I'm watching the videos but it's just not sinking in!
Steven Parker229,017 Points
If I understand what you're asking, the nature of code is that variables will get changed during the course of the code. If they don't need to change, the modern practice would be to declare them using "const" instead of "var", which guarantees that they will not change.
There's lots of additional learning material that can be found online, but before you start looking around, consider sticking with your course or track to completion as many times things will suddenly "sink in" in you just continue forward.