You can’t create a variable named "for". Unless you put backticks (`) around it.
Since that would be the first step down a slippery slope of hopeless confusion, backticks should be removed from identifier names - whether they’re
keywords or not - and the identifiers renamed as required.
Noncompliant code example
var `for` = 1 // Noncompliant
for (var `in` = 0; `in` < 10 && `for` > 0; `in`++) { // Noncompliant
// ...
}
var `x` = "hello" // Noncompliant; why would you do this?
Compliant solution
var i = a
for (var j=0; j< 10; j++) {
// ...
}
var x = "hello"