Ok, so I have a class applied to a group of images. I am trying to create a for loop that will use the elements of a class for the for loop. I know in python you can go "for element in thing" and was wondering if there was something similar in Javascript. I found some information online about the javascript for/in loop and have the following code written:
function walkingFeet(){
for (foot in *class named walkingFoot*){
[code to be executed]
}
}
I basically am just having trouble finding out what to put where the asterisks are and if that sort of syntax is something that I can even do with Javascript. Any help would be greatly appreciated.