--- title: "pageIndex" slug: "app-pageindex" updated: 2025-11-06T18:53:56Z published: 2025-11-06T18:53:56Z canonical: "docs.doc-know.com/app-pageindex" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.doc-know.com/llms.txt > Use this file to discover all available pages before exploring further. # pageIndex ### app.pageIndex Type: **Number** Returns the index of the active page in your app's layout. ### Examples ``` // display the current page index in the debugger debug.log(app.pageIndex); ``` ### Remarks Page indexes are **zero-based**. This means the first page will have an index value of 0 and the third page will have an index value of 2. Zero-Based Indexing **Zero-based** indexing seems strange at first, but it's how programming languages (i.e. JavaScript) work with collections of things.