Object Oriented Programming: Use an IIFE to Create a Module. help me understand

Tell us what’s happening:
I thought that this was the way to do it according to the instructions. I don’t really know what’s wrong with it or how to fix it.

Your code so far


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: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36</code>.

**Link to the challenge:**
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/finders-keepers

Hi dmoneyballer,

You’re almost there! you just had a typo. Use this : instead of = for isCuteMixin and singMixin

Happy coding!

1 Like

awesome, thanks for the help.