hi!
what is difference between return module or this
?
return module and get instance is difference when i return this
?
what is difference between const obj
and this.obj
in this case?
let module = function (value) {
const obj = {};
// or
this.obj = {};
this.title = function (value) {
this.obj.title = value
return this;
}
// or
module.title = function (value) {
obj.title = value
return module;
}
return module;
// or
return this;
}