title: Creating global 'for' variable. Should be 'for (var items ...'
body: <p>I am using jshint. Can anyone tell me why it's treating "for" keyword as global variable?</p>
  
  <blockquote>
    <p>Creating global 'for' variable. Should be 'for (var items ...'</p>
  </blockquote>
  
  <p>Here's the loop:</p>
  
  <pre><code>//items and properties are defined above...
  var items = null, properties = someObject;
  
  //code here is properly terminated with ; "semicolon"
  
  for (items in properties) {
      if (properties.hasOwnProperty(items)) {
          //some code here...
      }
  }
  </code></pre>