I have the following code:
for (i = 0; i < json.AnsData.length; i++) {
jsLint is telling me:
Warning 96 JS Lint: Unexpected '++'.
Does anyone know why this is?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From http://www.jslint.com/lint.html:
JSLint is very strict and reflects the views of its author, Douglas Crockford. Crockford is awesome, but he’s also very opinionated and some people find his opinions go too far for their tastes. If you find that avoiding
++isn’t something you can get behind, try JSHint instead of JSLint (or set the option in JSLint to tolerate++).