So if I had an array like this for example:
my_Array = ['a','a','a','a','42','54','a','a,'2','a','69']
if an element in the array was equal to 'a'
document.write('No number' + '<BR>');
else
if an element in the array was equal to a number
multiply this number by 2.
would I need to use a for loop:
for ( x in my_Array)
but then this is wear i'm stuck what do I equal it to in an if statement??
if (my_Array[x] == ???
cos if I write if (my_Array[x] == a)
it obviously doesen't recognize 'a'
So how do write out an individual element in an Array??
Am i on the right tracks here?
Any help would be great as I'm fairly new tothis as you can probably tell.