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 scope and engine question?

So I’m trying to understand scope more and how it interacts with the JavaScript engine? So from my understanding let’s say you have Function foo(a){ Console.log(a)

} Then call it with a argument Foo(2) The engine pretty ask the scope have you heard of foo function and the engines reads it then the same goes for a as long as it’s hasn’t been changed the engines Returns 2 in the console?

Trying to get a better understanding all I have done is struggled with JavaScript.. I want to get better so I can change careers and provide for my family..