3

I'm having hesitation about closing question:

Is this JavaScript code OK?

On one hand, even the OP don't know if there is any problem about the code. On the other hand, this question seems doesn't belong to the case like Are questions about checking correctness of code on topic?, because this time the code is much shorter, and the root cause is simple, which is already a narrowed scope in stead of a broad question.

My question is, is this kind of questions need to close? If so, what is the close reason?

2
  • 8
    Even though the answers are simple, the question is terrible. What defines as OK? It'll certainly work; but their code doesn't really make sense. Askers need to define explicitly what they mean by 'working' and 'not working'. Are they asking if it's possible to pass arguments not defined? Are they asking how to change the text? Are they asking whether or not it's good coding practice? Who knows? They just gave a code dump and asked people to fix it based on no 'passing' criteria.
    – Rob Mod
    Commented May 29, 2017 at 5:10
  • 1
    Should be closed as "Unclear what you're asking"
    – CinCout
    Commented May 29, 2017 at 7:57

0

You must log in to answer this question.

Browse other questions tagged .