JSFiddle - React, Tailwind, and code Playground

by Gerald Gillespie

HTML

<div id="print">
default text
</div>

JavaScript

this.type = 'non-windowhi';
window.type = 'windowhi';
var namespace = {
     
};

var _print = function(txt){
	jQuery('#print').text(txt);
  
};

var L = function(){
	return this;
}

var _init = function(opts){

	if(typeof namespace[opts.name] === 'undefined'){
  	namespace[opts.name] = new L(opts);
  }
  return namespace[opts.name];

};

var _baseLog = function(options){
	_print(this.type);
}

L.prototype.log = function(options){
		
};

L.prototype.debug = function(options){
	options.type = 'debug';
}


_baseLog({ type : 'debug'});