I have strange situation - here is Javascript code - and in NetBeans IDE 8.0 I see an alert "Expected a conditional expression and instead saw an assignment":
var elem;
var a = 0;
while ((elem = document.getElementById('id-' + a)) !== null) {
//Some code
a++;
}
But code works fine. Maybe this is some bug in Netbeans IDE 8.0?