encapsulation_problem_js

by upigilam

JavaScript

// example of encapsulation of methods and variables

var animal = function () {
this.type = "dog";
this.Sound = "Bark";
}