Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Study Up on Debugging and Error Handling

Learning Objectives

After completing this unit, you’ll be able to:

  • Handle errors properly given a scenario.
  • Use the console and breakpoints given code to be debugged.

Key Topics

This unit prepares you for the Debugging and Error Handling section of the Salesforce JavaScript Developer I multiple-choice exam, which makes up 7% of the overall exam. This section of the exam tests these topics:

  • Exceptions
  • Selective catching
  • Assertions
  • Breakpoints

This unit provides a number of interactive, real-world, scenario-based questions that are a lot like the ones you’ll encounter as a Salesforce JavaScript Developer. Looking at these scenarios helps prepare you to take this Debugging and Error Handling section of the Salesforce JavaScript Developer I multiple-choice exam. As you tackle the practice questions, you get immediate feedback on your answers, along with detailed information on why your answers are correct (or incorrect).

The unit also contains interactive flashcards centered around study topics that help you prepare for the Debugging and Error Handling section of the exam.

Download the Guide

Would you like a hard copy of this module’s content as a study aid? Download the JavaScript Developer I Certification Prep: Debugging, Error Handling, and Testing guide. (Each module in this trail includes a link to a printable version of the content that you can download.)

Exam Practice Questions

Ready to jump in? The sample tool below is not scored—it's just an easy way to quiz yourself. To use it, read the scenario, then click the answer you think is correct. Some questions may have more than one correct answer. Click Submit to learn whether the answer you chose is correct or incorrect, and why. If there’s a longer explanation, click Expand button  to expand the window, then click anywhere in the window to close it. When you reach the end, you can review the answers or retake the questions.

Did you get a scenario wrong? Check out the table below for related study material.

Scenario 1
Review JavaScript.info: Error handling, try...catch documentation to understand the try...catch construct and its usage.
Scenario 2
Study up on using breakpoints using the Javascript.info: Debugging in Chrome documentation.

Exam Topic Flashcards

The following flashcards cover debugging and error handling. Use these interactive flashcards to brush up on some of the key topics you’ll find on this part of the exam.

Read the question or term on each card, then click or tap the card to reveal the correct answer. Click the right-facing arrow to move to the next card, and the left-facing arrow to return to the previous card.

Did you get a flashcard wrong? Check out the table below for related study material.

Flashcard 1
Study up on using breakpoints by reviewing JavaScript.info: Debugging.
Flashcard 2
Learn how to describe the options for handling errors with the try...catch block by reviewing MDN web docs: try...catch.

Looking for more information? Explore these related badges.

Badge
Content Type
JavaScript Skills for Salesforce Developers badge. JavaScript Skills for Salesforce Developers
Module
Modern JavaScript Development badge. Modern JavaScript Development
Module

You’ve reviewed debugging and error handling. Next, let’s take a look at testing.

Resources

在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈