- Joined
- Jun 15, 2014
- Messages
- 240
- Reaction score
- 41
- First Language
- English Spanish
- Primarily Uses
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)
Code:
setTimeout(function () {
this.colorOff(color);
}, 350);
