Created
April 15, 2013 15:33
-
-
Save nicknisi/5388996 to your computer and use it in GitHub Desktop.
I believe JSHint shouldn't throw an error on this when the unused variable is a paramater in the function, as having it defined can help define the function, even if it isn't necessarily used.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint strict:false,unused:true*/ | |
function foo (bar) { | |
console.log('hello, world!'); | |
} | |
foo(); | |
// var.js: line 3, col 18, 'bar' is defined but never used. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment