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

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:

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

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

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

1 Like