JSFiddle - React, Tailwind, and code Playground

by dafastestfingers

JavaScript

var fn = function(a, b, c, cb) {
    this.cb = cb(a, b, c);
}
    
var foo = new fn('a', 'b', 'c', function(x, y){
    document.write(x+y);
});