nerdexam
Salesforce

PDII · Question #241

A company has the Lightning Component above that allows users to click a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the…

The correct answer is A. Enable Debug Mode for Lightning components for the user. B. Use console.log() messages in the JavaScript. D. Use the browser's dev tools to debug the JavaScript. See the full explanation below for the reasoning.

Question

A company has the Lightning Component above that allows users to click a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the records are getting saved, but they are not redirected. Which three techniques can a developer use to debug the JavaScript? (Choose three.)

Options

  • AEnable Debug Mode for Lightning components for the user.
  • BUse console.log() messages in the JavaScript.
  • CUse Developer Console to view debug log.
  • DUse the browser's dev tools to debug the JavaScript.
  • EUse Developer Console to view checkpoints.

How the community answered

(43 responses)
  • A
    74% (32)
  • C
    9% (4)
  • E
    16% (7)

Community Discussion

No community discussion yet for this question.

Full PDII Practice