// is there any difference between funModule and notFunModule????
let funModule = (function () {
return {
isCuteMixin: function(obj) {
obj.isCute = function() {return true}
},
signMixin: function(obj) {
obj.sing = function() {
console.log("Singing to an awesome tune");
}
}
}
})()
let notFunModule = {
isCuteMixin: function(obj) {
obj.isCute = function() {return true}
},
signMixin: function(obj) {
obj.sing = function() {
console.log("Singing to an awesome tune");
}
}
}
let person = {};
notFunModule.isCuteMixin(person);
console.log(person)
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Challenge: Use an IIFE to Create a Module
Link to the challenge: