Assertion: function | /r/HasProperty | first class objects
Facets:
value: in javascript
type: OTHER
Source sentences:
text: In JavaScript, functions are first class objects.
text: In JavaScript, functions are first-class objects, because they can have properties and methods just like any other object.
text: If it is possible for the nested function to escape the enclosing function, for example if functions are first class objects and a nested function is passed to another function or returned from the enclosing function, then a closure is created and calls to this function can access the environment of the original function.
text: Closures are possible in Python because functions are first-class objects.