JSFiddle - React, Tailwind, and code Playground

by ryanwheale

JavaScript

var Functions = {
    maintainHistory: (function(window, undefined) {
        return function(title, url) {
            console.log("maintainHistory was called with title", title, "and url", url);
        };

    })(window),
    
    anotherProperty: function() {
        console.log("anotherProperty was called");
    }
};

Functions.maintainHistory("A sample Title", "http://google.com");
Functions.anotherProperty();