Skip to content
Gallery
Javascript
Share
Explore
Javascript

General questions

What is a first class citizen in JS? ​In JavaScript, a first-class citizen (or first-class object) refers to an entity that can be:
• Assigned to a variable
• Passed as an argument to a function
Returned from a function
Stored in data structures like arrays or objects


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.