Creating Private Variables in JavaScript
25,531
Subscription preferences
Loading...
Loading...
Working...
893 views
6
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...
Loading...
Loading...
The interactive transcript could not be loaded.
Loading...
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...
-
1:02:29
JavaScript Essentialsby Travis TidwellFeatured
9,402
-
9:34
Getting Clever with CSS3 Shadowsby nettutsplus
2,011 views
-
15:01
Let's Create Paper with CSSby nettutsplus
3,480 views
-
12:03
Working with the Official jQuery Templating Pluginby nettutsplus
9,190 views
-
8:44
Cross Domain AJAX Request with YQL and jQueryby nettutsplus
12,606 views
-
17:17
20/21 Javascript Fundamentals - Fundamentals of JavaScript Closuresby Chris Johnson
1,191 views
-
10:54
javascript variables part 1by Dato' Mohammad Nurdim
1,273 views
-
1:42:09
Crockford on JavaScript - Volume 1: The Early Yearsby yuilibrary
47,541 views
-
3
videos
Play all
javascript tutorialsby willzurmacht -
47:31
iGoogle @cs.Technion class 2: JavaScript Closures & Protoby techtalksheb
921 views
-
2:40
14. JavaScript - Closuresby codewithjosh
1,508 views
-
1:03:47
JavaScript: The Good Partsby GoogleTechTalks
318,746 views
-
8:32
Javascript Objects Basicsby Stefan Mischook
14,570 views
-
8:16
Javascript 4 - Augmenting system types, closures and late binding enclosures.by PicNetTV
1,264 views
-
4:41
Secrets of JavaScript Closuresby YoungProfessionalICT
5,053 views
-
56:23
Speed Up Your JavaScriptby GoogleTechTalks
94,060 views
-
4:23
Using Closures in JavaScriptby Dan Wahlin
5,437 views
-
1:00:37
jQueryby GoogleTechTalks
309,724 views
-
1:00:07
22C3: Learning JavaScript with the Google Maps APIby Christiaan008
6,511 views
-
57:07
Google I/O 2011: JavaScript Programming in the Large with Closure Toolsby GoogleDevelopers
49,499 views
-
14:54
JavaScript: Getting Closure - Mark Dalgleishby webdirections
6,277 views
- Loading more suggestions...