Is my javascript coding style following best-practice?

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-05-10T14:07:26Z Indexed on 2010/05/10 14:14 UTC
Read the original article Hit count: 659

Filed under:
|
|

What is the 'best practise' with regard to coding style.

Should I use _ for private members? Should I use this._privateMember?

Please re-write my code in proper style if its wrong:

(function()){

   var _blah = 1;


   someFunction = function() {

  alert(_blah);

   };

   someOtherFunction = function {

  someFunction();

   }


}();

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about AJAX