Uncategorized

Defining JavaScript functions inside a loop

One of the warnings that JSLint (and JSHint) can output is “Don’t make functions within a loop”. JSLint doesn’t provide any further information about the warning and a quick web-search only results in mentions of best-practice and wasting of resources. Read more