JavaScript: Functions are First-Class Citizens
Very often you can hear that in JavaScript "Functions are first-class citizens".
All it means is that it's possible to:
Assign a function to a variable
Pass a function to another function (callback)
Return a function from another function
Store fun...
blog.macieksitkowski.com1 min read