Парни кто подскажет почему код не работает??
function timeSpeed(sped,dist) {
let a = 240
let timeDistance = dist / sped * 60;
for(let i = 0; i < timeDistance; i++){
if(timeDistance[i] === a){
timeDistance - 60
}
}
console.log(timeDistance);
}
timeSpeed(120, 1000)