InNeedofHelp
02-27-2006, 08:33 PM
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. :p
With arrays, is there a way to add a variable to an already existing array?
For example:
var fruits=new Array();
fruits[0]="apples"
fruits[1]="bananas"
fruits[2]="oranges"
Is it possible to then go and using a function add a fruits[3]="pears" to that already existing array?
I got a question I've been curious to know the answer to for several months, but have never looked into finding that answer. :p
With arrays, is there a way to add a variable to an already existing array?
For example:
var fruits=new Array();
fruits[0]="apples"
fruits[1]="bananas"
fruits[2]="oranges"
Is it possible to then go and using a function add a fruits[3]="pears" to that already existing array?