+ 2
Gat a problem with the "Land Ho" code cach challenge
var position= parseInt(prompt())+1; let time= 10 for(i=0;i<position;i++){ if (position<20){ console.log(`${time} minutes`) break; } else{ position -=20 time+=20 } }
5 Answers
+ 3
Kizito David interesting way quite complex but not impossible:
https://code.sololearn.com/WAgIzxkc5X3U/?ref=app
+ 2
Hwres tge question
You are on a large ship and you put down anchor near a beautiful beach. There is a small boat ferrying passengers back and forth, and you get in line for it. How long will you have to wait to get to the beach? You know that 20 people can fit on the boat and each trip to shore takes 10 minutes each way.
+ 2
What exactly is your problem and the trouble you are having?
+ 2
Thanks all of u guyz