get data and stored in array javascript code example Example: javascript declare array var array = []