You don't have to do anything, of course. But if you want to do something...
Constructive things to do
- On those occasions you find yourself getting riled by it, walk away. Life is too short. Smell some roses. Take a walk. Read a poem.
- Downvote if the question "does not show any research effort".
- Post polite comments pointing out basic resources that are available such as MDN and SO's own documentation, and highlighting the search feature.
- Closevote duplicates, targeting the best dupetarget you can find.
- If closevoting a duplicate that would be trivial to find via SO's search, consider a polite comment describing how to use the search feature, perhaps linking to the search help.
- Answer non-duplicates. SO's goal is to be a repository of programming knowledge. This means not just of the tricky stuff. "How do I access the contents of an array" could be a good question and an opportunity to talk about how arrays are zero-based so indexes go 0...length-1 (whereas humans tend to start counting with 1 instead), they have a
length
property, some are sparse, what happens if you try to access an entry that isn't there, etc., etc. Basic questions are not automatically bad questions. (Of course, these days, they are likely to be duplicates, although I'm surprised sometimes when I can't find a dupetarget for something basic.)
- Post polite comments on answers to obviously-duplicate questions (after closevoting with a target) saying that we don't need yet another answer to the question.
- Downvote answers that are poor or fail to answer the question, just like on other questions.
- Upvote answers on questions that aren't obviously duplicates if they're clear and accurate, just like on other questions.
And again, you're not obligated to do anything.
Unconstructive things not to do
- Downvote answers that answer the question correctly.
- Berate or belittle the OP.
- Get really unhappy or angry about it; again, when this happens, just walk away. (this one is difficult)
I note the tension between "Downvote if the question 'does not show any research effort'" and "Answer non-duplicates." I think this is a tension inherent in SO itself: It's meant to be a repository of programming knowledge, and yet, if you post on SO you're expected to have already searched other repositories of programming knowledge. In any case, I invoke Walt Whitman: "Do I contradict myself? Very well, then I contradict myself, I am large, I contain multitudes."
$.first
routine.