nerdexam
Salesforce

PDI · Question #209

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers

The correct answer is A. Renclerer C. Helper D. Controller. In an Aura component, JavaScript functions can be defined and executed within the Controller, Helper, and Renderer resources to manage component logic, utility functions, and rendering lifecycle.

Submitted by minji_kr· Apr 18, 2026User Interface

Question

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers

Options

  • ARenclerer
  • BStyle
  • CHelper
  • DController
  • EDesign

How the community answered

(29 responses)
  • A
    86% (25)
  • B
    3% (1)
  • E
    10% (3)

Why each option

In an Aura component, JavaScript functions can be defined and executed within the Controller, Helper, and Renderer resources to manage component logic, utility functions, and rendering lifecycle.

ARenclererCorrect

The Renderer resource (.js file) defines client-side JavaScript functions that customize a component's rendering behavior, executing specific logic before, during, or after rendering events.

BStyle

The Style resource (.css file) defines CSS styles for a component's appearance and does not contain JavaScript functions.

CHelperCorrect

The Helper resource (.js file) contains reusable JavaScript functions that can be called from the component's controller, promoting modularity and code reuse for complex client-side logic.

DControllerCorrect

The Controller resource (.js file) defines client-side JavaScript functions that handle user interactions and component events, serving as the primary entry point for client-side logic in response to actions.

EDesign

The Design resource (.design) file defines attributes that can be exposed in the Lightning App Builder or Community Builder for declarative configuration, but it does not contain JavaScript functions.

Concept tested: Aura component client-side resources and JavaScript

Source: https://developer.salesforce.com/docs/component-library/documentation/en/aura/js_controller_helper_renderer

Topics

#Aura Components#JavaScript#Component Structure#Client-side Logic

Community Discussion

No community discussion yet for this question.

Full PDI Practice