JSFiddle - React, Tailwind, and code Playground

by Henry

JavaScript

var addto = function(outval){
	
  var inner = function(inval){
  	return inval + outval;
  }
	return inner;
};

var passval = new addto(2);
// var passval2 = new addto(3);

//console.dir(passval);
//console.dir(passval2);

console.log(passval(1));