Skip to content
Discussion options

You must be logged in to vote

You are running into how JavaScript's closures work. When function(result){} is called, it is in a different scope than your employees variable.

What does the code for query() look like?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@domjesus
Comment options

@jamesmosier
Comment options

@domjesus
Comment options

Answer selected by domjesus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants