Upload

Loading...

Creating Private Variables in JavaScript

1,211

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
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...

Advertisement
When autoplay is enabled, a suggested video will automatically play next.

Up Next


to add this to Watch Later

Add to

Loading playlists...