In a way of trying to solve the 23 code project of SOLOLEARN JavaScript course known widely with (The Snail in the Well) .. I produced this code which is worked with case of input = 128 and failed with input = 42. What I should modify in the code to implement the code successfully for all cases.
function main() {
var depth = parseInt(readLine(), 10);
//your code goes here
let count=0
for( let i=0;i<depth;){
i+=5
count++
}
console.log(count)
}
P.S.
//You can replace this [parseInt(readLine(), 10);] with 42 and 128
and remove the main function to enable work at any code editor.
Please share with us the problem or the challenge, in order to see the full picture.