I have a presentation made with vanilla javascript. And I have a for loop that creates sliders. In this for loop I have to
for (var i = 0; i < prod_lorem.img; i++) {
inhtml += "<div class="swiper-slide"><div class="img"><img src="assets/img/products/' + products_cat + '/' + prod_lorem.img + '/' + i + '.png" alt=""></div><div class="img"><img src="assets/img/products/' + products_cat + '/' + prod_lorem.img + '/' + i++ + '.png" alt=""></div></div>";
}
In second img class i++ and i+1 (this prints 01) didn't worked and I can't use two loops. I have to do this in one loop to not break the code. Thanks a lot.