InterviewHubPRO
Section Overview
Q168

Question 168 of 521

Part 3: DOM, Event Flow, Timers & Browser APIs (104 - 173)

32%
JavaScript Internals (521 Qs)•Part 3: DOM, Event Flow, Timers & Browser APIs (104 - 173)

What is a debugger statement

The debugger statement invokes any available debugging functionality, such as setting a breakpoint. If no debugging functionality is available, this statement has no effect. For example, in the below function a debugger statement has been inserted. So execution is paused at the debugger statement just like a breakpoint in the script source.

javascript
  function getProfile() {
    // code goes here
    debugger;
    // code goes here
  }