Repeat a step in a for loop in JS
Posted: 28 Nov 2020, 06:38
I have a for() loop like this one which shows what i want to do.
How can I repeat the for() loop when the parsed data has a a certain specified value?
Thanks in advance.
Code: Select all
for(var i=0; i<15; i++) {
// Add data in html
// When data has a specified value, sets new data and repeat the loop
}
Thanks in advance.