Upload

Creating Private Variables in JavaScript

nettutsplus nettutsplus·172 videos
25,531

Subscription preferences

Loading...

Loading icon Loading...

Working...
893 views
Like     Dislike 0

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like nettutsplus's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike nettutsplus's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add nettutsplus's video to your playlist.

Uploaded on Mar 16, 2010

View the original article here: http://net.tutsplus.com/tutorials/jav...

Because of JavaScripts dependence upon globals, it might be easy to forget that creating private variables can be accomplished quite simply, thanks to closures. In just a few minutes, Ill demonstrate two common techniques which allow for private variables and methods in your projects.

  • Category

  • License

    Standard YouTube License

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Loading icon Loading...

Loading...
Working...
Sign in to add this to Watch Later