JSFiddle - React, Tailwind, and code Playground

by Yubraj Pokharel

JavaScript

var Module = (function () {

	var privateMethod = function () { console.log("i am private"); };
	return {
		publicMethodOne: function () {
		 	console.log("one");
		},
		publicMethodtwo: function () { console.dir("two"); },
		publicMethodThree: function () { console.log("three"); }
	};
})();

Module.publicMethodtwo();
Module.publicMethodOne();
Module.privateMethod();