I want to know why there is such a weird behavior as variableOne should be same.
myfun = (function() {
var variableOne = 10;
get = function(){
return variableOne;
}
set = function(value){
variableOne = value;
}
return {variableOne,set,get};
})();
// Console Window Output
console.log(myfun.variableOne);
>>10
myfun.variableOne = 90;
myfun.get()
>>10
Why the value hasn't changed to 90 for variableOne.