What does JSLint mean by 'Unexpected expression 'i' in statement position.'?
问题 I have a for loop in JavaScript that I have run through JSLint a few times. In the past I received the unexpected++ error , I decided to refactor to make my code more readable. A month or so later JSLint came out with an update and is now showing the warning... Unexpected expression 'i' in statement position. for (i; i < scope.formData.tabs.length; i = i + 1) { //See JSLint.com for why I pulled out i initialization and i = i+1 instead of i++ //and http://stackoverflow.com/questions/3000276