Help please, I can not figure out the cycle in JS. Now I use this crutch:
if (video == 199) { if (length < 30) { document.getElementById('price').innerHTML = ('$50'); } else if (length < 60) { document.getElementById('price').innerHTML = ('$75'); } else if (length < 90) { document.getElementById('price').innerHTML = ('$100'); } else { document.getElementById('price').innerHTML = ('$125'); } } But I need to change the length in increments of 30 - price increased by 25