nerdexam
SalesforceSalesforce

PDI · Question #162

PDI Question #162: Real Exam Question with Answer & Explanation

The correct answer is A: Controllers. In Aura components, JavaScript functions are primarily implemented within the Controller, Helper, and Renderer resources.

Submitted by tyler.j· Apr 18, 2026User Interface

Question

Which three resources in an Azure Component can contain JavaScript functions?

Options

  • AControllers
  • Bhelper
  • CDesign
  • DStyle
  • ERenderer

Explanation

In Aura components, JavaScript functions are primarily implemented within the Controller, Helper, and Renderer resources.

Common mistakes.

  • C. The Design resource (.design file) is an XML file for defining component attributes for customization in tools like App Builder; it does not contain JavaScript functions.
  • D. The Style resource (.css file) is used for defining component styles and appearance; it does not contain JavaScript functions.

Concept tested. Aura component JavaScript resource types.

Reference. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_javascript_resources.htm

Topics

#Aura Components#JavaScript#Client-Side Logic#Component Architecture

Community Discussion

No community discussion yet for this question.

Full PDI PracticeBrowse All PDI Questions