make script execute for each element in for loop js code example
Example: forloop in js
for(i = 0; i < x; ++i){
//Loop, x can be replaced with any integer;
}
for(i = 0; i < x; ++i){
//Loop, x can be replaced with any integer;
}