Hey DD,
I got a question I've been curious to know the answer to for several months, but have never looked into finding that answer.![]()
With arrays, is there a way to add a variable to an already existing array?
For example:
Is it possible to then go and using a function add a fruits[3]="pears" to that already existing array?Code:var fruits=new Array(); fruits[0]="apples" fruits[1]="bananas" fruits[2]="oranges"



Reply With Quote


Bookmarks