Hacker News new | past | comments | ask | show | jobs | submit login

Eh, closure is just anested function. Just like a function can have access to global/static vars, a closure can also have access to vars in its parent scope. They are like global vars to it



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: