It is generally best practice to have only one var statement per scope block in JavaScript. If the “Require only one var per function” option is checked in JS Lint (of JS Hint), it will issue a warning about it. You can either deselect the option in JS Lint, or modify your var statements to use the one var declaration syntax as seen below.
var myFunction = function(){
var firstVariable = ‘test’,
secondVariable = ‘check’,
thirdVariable = ‘fail’;
}