WatchMeCode

screencasts by derick bailey

be the first to know about new episodes

Episode 3: Variable Scope In JavaScript

Are you staring a pile of JavaScript, wondering why anyone would use that pesky "var" keyword? Or perhaps your looking at a series of nested functions that seem to share variables, but you can't figure out how. And why is that function wrapped in parenthesis, with a bunch of vars in it?

Join me as I explore and explain the basics of managing the scope of variables in JavaScript. We'll work with with global and local variables, immediate functions, JavaScript modules, constructor functions, objects instances, and more. Along the way, we'll also look at a number of common JavaScript patterns that help us take advantage of scoping.

Watch The Preview For "Variable Scope In JavaScript."

What you'll learn:

  • Global vs function scope
  • Variable hoisting
  • Nested functions and closures
  • Immediate functions
  • JavaScript modules
  • Object literals
  • Constructor functions
  • Private and shared variables

What you'll get:

  • 30+ minutes of video
  • Complete transcript
  • Named chapters
  • Download, to take it with you
  • Multiple formats (.mov, .mp4)
  • 720p HD video

I also have a few blog posts related to variable scope in JavaScript:

Quotes and reactions from viewers

"It should be required viewing for any js developer" - Sumit Gupta
"was impressed how well [Derick] broke down complex concepts & made it easy to learn" - Paul Yoder
"It's like having a private tutor for JavaScript" - Sebastian Motraghi

blog comments powered by Disqus
Published: 2011-11-30. Running Time: 30+ minutes.