Basic

Module pattern

var partners = (function($) {
    var privateVar = "private data";
    var otherVar;

    function privateFunction() {
        alert("This can not be called")
    };

    function privateFunctionToBePublic(param) {
        alert('Ok');
    };

    // API: expose public methods
    return {
        publicMethod: privateFunctionToBePublic,
        publicVar: otherVar
    }
})(jQuery); // Give jQuery to the module as an example

Misc

"My {0} is rich".format("whatever");