Welcome to the Treehouse Community
Looking to learn something new?
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 Parker216,045 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.