JavaScript controller and helper

Lightning Components are not just static markup; they interact with Salesforce data to send data back and forth between a browser and Salesforce servers.

JavaScript is used in web applications to add interactivity to web pages. It allows you to manipulate DOM elements (by applying new styles, removing styles, changing HTML markup), communicate with the server to send data back and forth, or pass data to the server, add animations, add visual effects, add audio effects, and many other things.

A Lightning Component bundle comprises JavaScript controllers and helpers that allow you to write client-side JavaScript to add interactivity and retrieve and push data to Salesforce servers.

When you create a Lightning ...

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.