JavaScript: Functions are First-Class Citizens