The following warning is shown:
for the code:
- Code: Select all
var countRecords = 0
for ( var i = 1; i <= records.length; i++ )
{
...
countRecords++
...
}
However, if I change the code to:
- Code: Select all
var countRecords = 0
for ( var i = 1; i <= records.length; i++ )
{
...
countRecords = countRecords + 1
...
}
no warning is issued. I would think either code style should work. Is this a bug, or am I not understanding something?