js array with sub code example Example: what is the purpose of subscript in an array arrayName( subscript ) // declaring a subscript