Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does "this" work differently in JS as it does from Python or even C++?

Is it not always the object that owns the function currently being executed?

If the "this" is implicit, then how can you possibly know where the variable comes from?



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

Search: