DEV Community

Discussion on: Named functions vs Functions as variables in JavaScript

Collapse
 
matpk profile image
Matheus Adorni Dardenne

I like functions as variables specially when I'm working with jQuery.

You can have some very clear syntax like:

zipcode_field.on('change', calculateShippingFee);