Understanding JavaScript Function As First-class Citizen
We often hear the phrase "Function is a first-class citizen in JavaScript", but what exactly does it mean?
It means that JavaScript function possesses all the capabilities of JavaScript object and is thus treated like any other object in the language...
revirial.hashnode.dev1 min read