Q. Consider the following piece of JavaScript code:
What is the role of the "debugger" statement?

Code:
<script>  
  
function fun(0){  
    if(0===undefined)  
        debugger;  
      
}  
  
</script> 
  • (A) It will debug the error in that statement
  • (B) It is kind of keyword which is used to debug the entire program at once
  • (C) It will do nothing, although it is a breakpoint
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) It will do nothing, although it is a breakpoint

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
225
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
93%
Success Rate