Quick Fixes and Semantic Checks (JavaScript Files)
For an illustrated description of JavaScript editing features in the NetBeans IDE,
see:
To display quick fixes, select Source > Fix Code (Alt-Enter). The semantic checks include:
Reassigning a parameter.
Anonymous function does not always return a value.
Variable hides argument.
Code which has no side effects (no calls, no assignments).
An assignment in a conditional (if x = y). This semantic error has several quickfixes associated with it, such as converting to an == expression, and adding double parentheses to turn off the warning.
Inconsistent returns from a function (where some return expressions return a value, and some do not).
Task List
The background parser and the warning quick fixes are integrated with the task list. Open the tasklist (Window > Task List) to view errors in any of your files that are associated with JavaScript. Double-click a task in that list and the editor goes to the relevant line.