DEV Community

Discussion on: Closures - JavaScript Concepts

Collapse
 
jlitowitz profile image
Jason Litowitz

In this case, assuming the function something returns a function, the first set of parenthesis will execute the something function, just like normal; the second set of parentheses will then execute the function that something returned.

Collapse
 
monfernape profile image
Usman Khalil

I really appreciate your response. Thank you for making these hardcore concepts easy to digest