I asked my first question ever on Stack Overflow and it got two downvotes in the first two milliseconds, so I deleted the question to not receive more downvotes. I was preparing for that question about a week, I have read help center page and "how-to-ask" page, and I also took a tour through this community and I read everything about what is allowed and what is not allowed on this website.
I spent three hours writing my question and preparing it very well, but still I cannot see what is wrong with my question. So, I am therefore asking here: Why has my question received a lot of bad score in such a short period of time?
On-topic
I strongly believe that my question is indeed on-topic, well-defined, clear and about programming.
My question is asking for debug help. There are thousands of questions asking "Why does this code work like this" or "Why does this code print that and not that", etc. Take a look at this question for example - it is a very good upvoted question, but it actually asks the same thing my question asks: "Why does this JavaScript code work like it does".
Comments
In comments a moderator said that I should use a debugger. But, I have already in my question mentioned that I indeed used debugger, but it didn't help very much. While debugging the script, I noticed much nonsense stuff and then... alert(12345)
appeared out of nowhere. It actually took more than 12 thousand debugger steps to reach the very end of the script and really I still cannot see why that script works like it does.
Votes
I am not asking downvoters to retract their votes, but I am asking the rest of the community to explain why is that question downvoted. Is it off-topic? If yes, what exactly from the help-center page forbids such question? Is it unclear? If yes, which part exactly is unclear? Is it something else? If yes, what and why?
Here is the link to the question I am talking about (10K+ only, it is deleted).
To avoid extended discussion in comments, here is a summary of my response.
I'm not a JavaScript coder, and so I can't criticize the programming content of your question, but I'm never usually fond of questions that ask for explanations of found code, as in my Java experience, they are best answered by debugging it and by studying (in depth) the appropriate tutorials. Again, I cannot comment regarding your code/question, but I've seen folks who have asked similar questions and who claim to have looked for a tutorial to explain something that does steps A-B-C when they should be looking for tutorials for each separate step.
There are a lot of questions asking about "Why does this code work like that", etc. It is really not always easy to debug code. Look at the one question I posted a link in this meta post. It has two upvotes, but I don't see why is that question better than mine. Or the one question linked from it, it has more than 20 upvotes, but it is asking the same thing "debug this code for me". Debugging is really not a trivial task, and today websites use a lot of advanced obfuscating techniques, making it very hard for developers to understand their strategy and how the code works.
Take a look at THIS question. It has 67 upvotes, but it didn't even talk about any attempt made from the OP. Why? Why has that question so many upvotes, while my question, full of attempts and explanations has -1? If it is not an injustice, then I don't know what is.