# app.js ## Application Lifecycle You can customize the [lifecycle](js-framework-lifecycle.md) implementation logic on an application-by-application basis in **app.js**. The following example only prints the corresponding logs in the **lifecycle** function: ``` // app.js export default { onCreate() { console.info('Application onCreate'); }, onDestroy() { console.info('Application onDestroy'); }, } ``` ## Application Object6+
Obtains the object exposed in the app.js file from the custom .js file. |