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

I would never not use a prototype in production code, but prototypes are a different topic that I wanted to avoid for this article. I'm just trying to explain "this".

Also, your code isn't right. You're calling myHotDog.getCondiments instead of passing a reference to setTimeout.



Sorry, I wasn't clear enough. I didn't mean what you are explaining is wrong.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: