jeudi 16 juin 2016

How to create public and private members?


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();
   }
}();

Aucun commentaire:

Enregistrer un commentaire