Site Feedback Post

Single Post Permalink

View Thread: Thanks for the Absolute Beginner Series!
  • User profile image

    Hi Bob

    First off, I wanted to thank you for taking the time to explain topics the way you do. In my experience, sometimes instructors who have a lot of experience forget that some things that they understand as simple are vague and complex ideas to beginners, and I praise you for not doing the same.

    I was watching your JS for Absolute Beginners tutorial; Coming from coding Java, and trying to understand some of the differences between it and JavaScript, I was hoping you could tell me what it means if I use the var keyword outside of any function. In other words, create a variable outside of any block of code like you would a global but adding the var keyword in front. How does this affect scope?