What is the purpose of a JavaScript debugger?
A
Correction of errors
B
Placing script execution under control
C
Correction of errors & Placing script execution under control
D
Compilation
Correct Answer: Placing script execution under control
A debugger is an application that places all aspects of script execution under the control of the programmer. Using the debugger statement has the same function as setting a breakpoint in the code. Debuggers provide fine-grained control over the state of the script through an interface that allows you to examine and set values as well as control the flow of execution.