Use an IIFE to Create a Module - unable to run test

Use an IIFE to Create a Module - unable to run test
0

#1

Tell us what’s happening:
I have altered the code but clicking run test does nothing.

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: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/67.0.3396.99 Chrome/67.0.3396.99 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

isCuteMixin and singMixin are object properties, so it’s :, not =


#3

Ok that’s the fix but why doesn’t the test detect this error? :thinking:


#4

I’m guessing the tests assume that there are no syntax errors in the code. Indeed it would be better if the output panel showed syntax errors