Study for the Salesforce Platform Developer Exam. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Practice this question and more.


Which resource can be included in a Lightning Component bundle?

  1. Apex class

  2. Adobe Flash

  3. JavaScript

  4. Documentation

The correct answer is: JavaScript

The inclusion of JavaScript in a Lightning Component bundle is fundamental to the development of interactive and dynamic components within the Salesforce Lightning framework. JavaScript serves as the primary programming language that allows developers to implement client-side logic, handle user interactions, and manipulate data displayed within the component. When developers create a Lightning Component, they often need to manage events, call server-side Apex methods asynchronously using the Lightning Component framework, and dynamically update the user interface based on user actions or data changes. This is all accomplished through JavaScript, which is why it is a crucial part of the component's functionality. Other resources mentioned, such as an Apex class, can be utilized by the Lightning Component but are not part of the component bundle itself. Apex classes are stored separately on the server and are accessed when needed, making them distinct from the bundle. Adobe Flash is no longer supported in modern web technologies, as it has been deprecated due to security concerns and a shift to HTML5 for web applications. Documentation, while valuable for understanding and maintaining code, is not a resource that gets included in the actual component bundle files, but rather serves as external support material. Thus, JavaScript stands out as the essential resource that can be directly included in a Lightning Component bundle, enabling