I have the following line in javascript
$.each(words, function (key, val) {
However, in jslint and jshint I keep on getting the below
unused variable key
I want to know how to fix this through coding.I read this post JSLint message: Unused variables . HOwever, I want to know if it is possible if I can fix this through coding rather than writing a comment to ignore it?