MCQ
What is the best first step to debug a JavaScript error in a web page?
Unit-3 Programming Fundamentals
A Rewrite the whole page
B Check the browser console for error messages
C Delete the HTML file
D Turn off the browser
Explanation

The browser console shows error messages and line numbers that help locate the problem quickly.