JS - Me Module - SOLVED

by Ryan Morris

JavaScript

var me = {
    
};

var me = (function(){
    
    var trophies = ["gold star", "silver medal"];
    
    return {
        name: "Ryan",
        numToes: 10,
        speak: function(words) {
            
            var self = this;
            
            console.log(this.name + " says: " + words);
            
            function inner_speak() {
              that.name;   
            }
            
        },
        viewTrophy: function(i) {
             return trophies[i];   
        },
        addTrophy: function(trophy) {
             trophies[trophies.length] = trophy;   
        }
    }
    
})();

me.trophies = [];