JSFiddle - React, Tailwind, and code Playground
JavaScript
var LibraryName = {
someValue: 0,
firstFunc: function (stuff) {
this.someValue = 99;
this.secondFunction();
},
secondFunction: function () {
this.doSomething(this.someValue);
},
doSomething: function (val) {
console.log('dosomething');
}
}
LibraryName.secondFunction();