15.1.7.7.1 Adding Static Application JavaScript File
Use a Static Application File shared component to include files of any kind with your app.
From the Shared Components > Static Application Files page in the App Builder, add a file named app.js to include application-wide helper functions.
Tip:
The suggested file name app.js can be any name you like, but keep the .js extension.
- Using JavaScript Namespace Template
Use anapp.jsfile to define a single global namespace for reusable JavaScript helper functions. - Comparing Namespace to PL/SQL Package
Use an immediately invoked function expression (IIFE) to create an app namespace for reusable JavaScript helper functions.
Parent topic: Providing App-Wide Helper Functions