I want to see return true in the console.log but i can’t figure out the way to access it.
let funModule = (function () {
return {
isCuteMixin: function (obj) {
obj.isCute = function() {
return true
};
},
singMixin: function(obj) {
obj.sing = function() {
console.log(“Singing to an awesome tune”);
};
}
}
}) ();
I Tried:
console.log(funModule.isCuteMixin(isCute)); // it doesn’t return anything… tried all of the different things