10/21 Javascript Fundamentals - Understanding Function versus Global Scope

Опубликовано: 04 Октябрь 2024
на канале: Code 4 All
4,333
24

Developer and IT training videos: http://goo.gl/QBWjvA

Learn how to build websites & apps: http://goo.gl/p9DrUh

One often misunderstood topic that leads to errors in programs is how JavaScript treats variables declared inside and outside of functions. This video explains the ramifications of variable scope at both the functional and global levels. For developers coming from other programming languages, it demonstrates how your familiarity with block scope will lead you to erroneous conclusions about JavaScript's functional and global scope. Also briefly discussed is the notion of hoisting in JavaScript.

Want to learn a different language? Over the course of 21 episodes, our friend Bob Tabor from http://www.LearnVisualStudio.NET/281.... will teach you the fundamentals of Javascript programming. Tune in to learn concepts applicable to web based videogames, enhanced user interfaces, and dynamic web pages.

Source code: http://media.ch9.ms/ch9/javascript/co...