JSFiddle - React, Tailwind, and code Playground

JavaScript

window.onload = function() {
    
    function overview(arg1, arg2, arg3) {
        console.info('arg1 is ' + arg1);
        console.info('arg2 is ' + arg2);
        console.info('arg3 is ' + arg3);
    }
    
    var namespace = {};
    namespace.overview = overview;
    function modules(method, args) {
        namespace[method].apply(null, args);
    }
    
    modules('overview', new Array('test1', 'test2'));
}