--- title: "args" slug: "script-args" updated: 2025-11-06T18:56:59Z published: 2025-11-06T18:56:59Z canonical: "docs.doc-know.com/script-args" --- > ## 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. # args ### script.args Type: **Array** Returns a JavaScript array of all input arguments to the active script. Insight **Array** is a programming term for a collection. ### Examples ``` // display the 1st and 3rd input arguments in the debugger var first = script.args[0]; var third = script.arg[2]; debug.log(first); debug.log(third); ``` ``` // display # of input arguments to script // note: JavaScript arrays support a 'length' property var size = script.args.length; debug.log(size); ``` ### Remarks Access items in this array by specifying their position within **square brackets**. This is how all JavaScript **arrays** (**collections**) work. See included examples. Items in this array are **zero-indexed**, which means that the first item is at location zero (0), the second at location one (1), and so on. Strange Fact Programmers are a little strange sometimes. While far more intuitive to think of the first item in a collection as being at location 1, the second at location 2, and so on, programmers made it difficult on themselves and start at position zero! The **Ux.Change** event is an example where input arguments are very useful. When this runtime event triggers a script, the **script.args** property provides access to the specific items in your app's visual layout that were changed by the user.