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

It requires parentheses `(3).myMethod()` but you can by monkey patching the Number prototype. Very bad idea, but you absolutely can.


You can just add extra dot: `3..myMethod()`.




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

Search: