Free Salesforce JavaScript Developer Practice Test Questions

Topic: Debugging and Error Handling

147 questions Updated 23-Nov-2026 7 topics
TopicDebugging and Error Handling
Question 1 Choose 2
A developer is asked to fix some bugs reported by users. To do that, the developer adds a breakpoint for debugging.

01 function Car(maxSpeed, color) {

02 this.maxSpeed = maxSpeed;

03 this.color = color;

04 }

05 let carSpeed = document.getElementById( ' carSpeed ' );

06 debugger;

07 let fourWheels = new Car(carSpeed.value, ' red ' );

When the code execution stops at the breakpoint on line 06, which two types of information are available in the browser console?
Question 2 Choose 1
A developer needs to debug a Node.js web server because a runtime error keeps occurring at one of the endpoints.

The developer wants to test the endpoint on a local machine and make the request against a local server to look at the behavior. In the source code, the server.js file will start the server. The developer wants to debug the Node.js server only using the terminal.

Which command can the developer use to open the CLI debugger in their current terminal window?

(With corrected typing errors: node_inspect # node inspect, node_start_inspect # node start inspect.)

That's the last free question in Debugging and Error Handling

You've seen the free 25% of this topic (2 of 11 questions). Get complete access for every question, explanation and the timed exam simulator.

Unlock all questions

Experience the real exam before you take it

Our timed 2026 Salesforce JavaScript Developer practice test mirrors the format, number of questions and time limit of the official exam.

The #1 challenge isn't just knowing the material, it's managing the clock. The simulation builds your speed and stamina, so you walk in knowing exactly what to expect.

Take Salesforce JavaScript Developer practice exam
  • Build exam stamina: stay focused and accurate for the entire duration.
  • Master time management: learn to pace yourself so you never have to rush.
  • A new test every time: a randomised set from the Salesforce JavaScript Developer - JS-Dev-101 question pool on every attempt.
  • Unlimited attempts: practice until you're 100% confident, not just once.