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

actually in this code, "this" refers to the window object. it means it's same as window.version.

I thought that for a moment, but it isn't so. They do call the Browser() function as a constructor with 'new Browser()', so 'this' is the object it's constructing.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact