Diffrent classes in the same list. How do I check which element is what class?
I have a list, lets say: fruits = []
and two diffrent classes in it:
fruits.push(new apple())
fruits.push(new orange())
Now using:
for f in fruits
HOW DO I CHECK if f is an apple of an orange?
end
????????