picking arrow functions vs regular functions
Hey, i understand that picking whether to use arrow functions or regular functions is sometimes based off of preference but mainly based off of what behavior you'd like, however why are functions such as
at first glance, there doesn't seem to be any more benefits to one than the other in this case so is this more of a personal preference one?
thanks in advance.
setTimeout mainly seen to use arrow functions not regular? e.g.at first glance, there doesn't seem to be any more benefits to one than the other in this case so is this more of a personal preference one?
thanks in advance.
