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