nerdexam
Salesforce

PDI · Question #162

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

The correct answer is A. Controllers B. helper E. Renderer. 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

How the community answered

(25 responses)
  • A
    88% (22)
  • C
    4% (1)
  • D
    8% (2)

Why each option

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

AControllersCorrect

The Controller (`.js` file) defines functions to handle user interactions and component lifecycle events, acting as the primary interface for client-side logic.

BhelperCorrect

The Helper (`Helper.js` file) contains reusable JavaScript functions that can be called by the Controller, promoting modularity and separation of concerns.

CDesign

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.

DStyle

The Style resource (`.css` file) is used for defining component styles and appearance; it does not contain JavaScript functions.

ERendererCorrect

The Renderer (`Renderer.js` file) contains JavaScript functions that override or extend the default rendering behavior of a component, executing at various stages of the component's rendering lifecycle.

Concept tested: Aura component JavaScript resource types.

Source: 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 Practice