P
P
pvgdrk2014-09-03 21:44:38
PyCharm
pvgdrk, 2014-09-03 21:44:38

What does the remark "Var statement is not at the scope start" mean about js code?

PyCharm (python development environment) for js code makes a remark in almost every function about incorrect (but not critical) code: "Var statement is not at the scope start". For example in this piece:

$("#Level1").change(function(){
        $('#Level3').children('div').empty();
        var parentKey = $(this).val();
        setLevel2(parentKey);
});

The same, for example, for declaring a counter in an iterator.
What does it mean?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question