Hi, Im tryng to convert arrow functions to regular ones and viceversa just to understand them 100%.
But I cant make my code work this one:
I converted to:
The arrow function works but not the regular one...
But I cant make my code work this one:
Code:
setTimeout(() => this.colorOff(color), 350)
I converted to:
Code:
setTimeout(function () {
this.colorOff(color);
}, 350);
The arrow function works but not the regular one...