Pay attenton to curly braces
I don't give a fuc* what is it
it's just a best architecture in node.js (sarcasm)
https://github.com/odykyi/idgaf-js/blob/master/fuck1.js
Just clone and run
$ npm start
IDGAF works!
fuck2 context {}
fuck2 called once
fuck2 inner function called once
fuck3 context {}
require('./fuck1');
require('./fuck2');
require('./fuck3');
}, function fuck1() {
console.log('IDGAF works!')
}, function fuck2() {
console.log('fuck2 context', this); // {}
console.log('fuck2 called once');
(() => {
console.log('fuck2 inner function called once');
})();
}, function () {
console.log('fuck3 context', this); // {}