1# app.js 2 3## Application Lifecycle<sup>4+</sup> 4 5You can implement lifecycle logic specific to your application in the **app.js** file. Available application lifecycle functions are as follows: 6 7 8- **onCreate()**: called when an application is created 9 10- **onDestory()**: called when an application is destroyed 11 12 13In the following example, logs are printed only in the lifecycle functions. 14 15 16 17```js 18// app.js 19export default { 20 onCreate() { 21 console.info('Application onCreate'); 22 }, 23 onDestroy() { 24 console.info('Application onDestroy'); 25 }, 26} 27``` 28