JSFiddle - React, Tailwind, and code Playground
by redler
JavaScript
function func() {
this.subfunc1 = function() {
alert('1: ' + arguments[0]);
return this;
}
this.subfunc2 = function() {
alert('2: ' + arguments[0]);
return this;
}
this.subfunc3 = function() {
alert('3: ' + arguments[0]);
return this;
}
alert('main: ' + arguments[0]);
return this;
}
func('this').subfunc2('that').subfunc3('foo').subfunc1('zip');