Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: memo on August 27, 2020, 10:33:07 AM

Title: How do I add data to the array?
Post by: memo on August 27, 2020, 10:33:07 AM
I declared that variable:a  data type is an array. How do I add data to the array?
i try failure:
variable:a[]
AppState.a[0] = [1]

or
AppState.a = [[1],[2]]
Title: Re: How do I add data to the array?
Post by: Campfire on October 09, 2020, 02:04:53 PM
I would assume this to be more of EcmaScript in general than Genesys related.

Did you try,

a = [1,2];

Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array