Salesforce
PDII · Question #235
Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded? (Choose three.)
The correct answer is A. Call loadScript. C. Import a method from the platformResourceLoader. D. Import the static resource. See the full explanation below for the reasoning.
Question
Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded? (Choose three.)
Options
- ACall loadScript.
- BAppend the static resource to the DOM.
- CImport a method from the platformResourceLoader.
- DImport the static resource.
- EReference the static resource in a " script " tag.
How the community answered
(24 responses)- A75% (18)
- B17% (4)
- E8% (2)
Community Discussion
No community discussion yet for this question.