Object Oriented Programming: Use an IIFE to Create a Module.1

Tell us what’s happening:

The code doesn’t work. Please help anybody?

Your code so far


/*let isCuteMixin = function(obj) {
obj.isCute = function() {
  return true;
};
};
let singMixin = function(obj) {
obj.sing = function() {
  console.log("Singing to an awesome tune");
};
};*/
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");
    };
  }
};
})();

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Use an IIFE to Create a Module

Link to the challenge:

You’re very close. The return statement is returning an object. Look very closely at how you are defining the second property in the object.