JavaScript - Managing Scope Modules

by ctoestreich

JavaScript

var icue = (function($){
    
    var hello, whisper;
    
    whisper = function(text){
        console.log(text);
    }
    
    talk = function(text){
        whisper(text);
    }
    
    return {
        talk: talk
    };
}(jQuery));

icue.talk('Hello World');
//icue.whisper('Hello World');