Please help me define what is the use of having the (_) underscores in this piece of script? Are they required/needed and is there a particular purpose for them?
LanSec.prototype._init = function() {
this._setTransforms();
this.effect = this.el.getAttribute( 'data-effect' ) || 'effect-1' ;
this.isAnimating = false;
this.panels = [].slice.call( this.el.querySelectorAll ('.panel') )
}
After researching I know that it has nothing to do with the underscore library, it's not just a character and that it might mean private. If anyone is familiar with what might be the usage and know that in fact it means private ... please describe what it's for and when to use.