Salesforce
PDII · Question #309
Consider the following code snippet: How should the component communicate to the component that an order has been selected by the user?
The correct answer is C. Create and dispatch a custom event. See the full explanation below for the reasoning.
Question
Consider the following code snippet:
How should the component communicate to the component that an order has been selected by the user?
Exhibit
Options
- ACreate and fire a standard DOM event.
- BCreate and fire a component event.
- CCreate and dispatch a custom event.
- DCreate and fire an application event.
How the community answered
(43 responses)- A5% (2)
- B14% (6)
- C74% (32)
- D7% (3)
Community Discussion
No community discussion yet for this question.
