settimeout syntax for arrow functions code example
Example: settimeout arrow function javascript
doWork(callback) {
setTimeout(() => callback(this.name), 15);
}
doWork(callback) {
setTimeout(() => callback(this.name), 15);
}