What does this error means?
Return statement is inconsistent with previous usage
Netbeans show this error when i coded the below (snippet):
$.each(ToValidate, function (indexOfQuestions, questionNumber) {
var radioValue = "ja";
if (radioValue === "NEI" && questionNumber === "1.1") {
return false;
} else if (radioValue === "JA" && questionNumber === "1.1") {
return;
}
});
in else if, I am trying to continue the each, so I am using return. In if I need to break the control out of each so I am using return false. But that error is quite confusing.
Have I used keywords correctly or is there any other way to use Continue and Break in JQuery?