DEV Community

Discussion on: Named functions vs Functions as variables in JavaScript

Collapse
 
aarohmankad profile image
Aaroh Mankad

I also prefer named functions for most uses!

Do they also inherit the this scope? I've always used functions as variables when I've wanted to keep the scope of this constant among nested functions.