Rectangle 27 0

javascript Is it possible to fix unused variable in function for jslint and jshint?


You could "fix" it by doing something with the variable, but you don't need to. It is a warning (not an error), and one that is expected in an each loop.

Note
Rectangle 27 0

javascript Is it possible to fix unused variable in function for jslint and jshint?


for(var i=0; i<words.length; i++){

You can use for loop if words is purely an array.

Note