Use an IIFE to Create a Module. Test error?

Use an IIFE to Create a Module. Test error?
0

#1

Tell us what’s happening:

In this challenge I can pass the test assigning an objet to the variable funModule, without an IIFE.

Is there an error with the test?

Is there any difference creating the module without an IIFE?

Your code so far


let funModule = {
  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_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/use-an-iife-to-create-a-module


#2

What code did you try?


#3

The code you can see in my post