JSFiddle - React, Tailwind, and code Playground

by darkylmnx

JavaScript

var budgetController = (function() {

	var x = 23;
  
  var add = function(a) {
  	return x + a
  };
  
  return {
  	publicTest: function(b) {
    	console.log(add(b));
    }
  };

})();

// execute & check the cnsole now
budgetController.publicTest(1);