for (sicocxle > 1; sicocxle--;) {
console.log(sicocxle);
srol();
};
var od = 0;
function srol() {
var lem = document.getElementById("arrow");
clearInterval(od);
od = setInterval(aim, 10);
function aim() {
if (dos != -100) {
dos--;
dosl++;
lem.style.top = dos + 'px';
console.log(dos);
lem.style.left = dosl + 'px';
}
}
}
i want this action to repeat itself aroow element to do same movement
for loop doesnt works its consol logs 9 8 7 6 5 meaning loop is working but function doesnt repeats itself