Comments serve a specific purpose in Stack Exchange. Generally speaking, they should either ask for clarification or offer suggestions about how to improve the post. Random asides and other chatter are generally considered noise and are often flagged and removed.
Here are the comments in question:
<solution with code>
:
:
Comments:
- The fact that this is even possible in javascript is so disgusting.
- Seems to be a pretty poor interview question, to be honest. Not sure I would want a developer to implement such a method.
- Javascript has many parts. Some are good, and some are bad. The problem is interview questions that exploit these quirks
- It's unfortunate we can't get num this way, so the class doesn't make sense
- This is working, but deceze's answer seems right too
- whatever works for you
None of these comments are asking for clarification nor making suggestions to improve the post. They express a distaste for the original interview question and take some shots at JavaScript.
It's not like such comments are single-handedly destroying this thread, but in terms of keeping the Q&A tight and noise free, if somebody took the time to flag them, I probably would have hit delete
instead of dismiss
too.