How to create public and private members?
Posted
by Blankman
on Stack Overflow
See other posts from Stack Overflow
or by Blankman
Published on 2010-05-10T14:20:20Z
Indexed on
2010/05/10
14:24 UTC
Read the original article
Hit count: 279
JavaScript
|jQuery
I'm a bit confused, how can I create public and private members.
My code template so far is like:
(function()){
var _blah = 1;
someFunction = function() {
alert(_blah);
};
someOtherFunction = function {
someFunction();
}
}();
© Stack Overflow or respective owner