Every once in a blue moon, I notice an answer that matches the pattern:
- It's on a popular topic
- It's getting views
- It has a lot of upvotes, sometimes even an upvoted "thanks!" comment.
- It is completely and utterly false.
Here are such two examples:
- Are JavaScript Strings Immutable?
- AngularJS CORS (recently deleted after a while by the author, found it with +25 upvotes and 0 downvotes), (also dupe of this answer)
These are just the quickest two I found, but there are such answers I run into every once in a while. I'm not talking about deprecated technology that changed, but about answers that are downright wrong from their conception day.
So, what should I do when I encounter a factually incorrect old answer with a lot of upvotes?
Is commenting enough? It seems not to be the case for the strings answer, but worked for one of the Angular ones. Is flagging appropriate? Should the upvoted answers be posted about in meta on a case by case basis?
Related:
- Flagging old invalid/incorrect/wrong answers and the Meta.SE counterpart.
- Bad quality or wrong answers on Android
var str = "foo"; str.bar = 5; console.log("this is undefined", str.bar)
- if str was an object it would log 5, or throw. It boxesstr
to a string object. In particular, read the part about the string boxed object vs the string value type: es5.github.io/#x4.3.18