let exploredeserts = () => { let cautiousjourney = "embarking on a desert exploration requires a cautious approach, respecting the harsh environment and its pre-existant challenges."; for(let day=1; day <= journeylength; day++) { if(!dialoguewithlocals(day)) { console.log("reinitiate dialogue with desert dwellers to avoid giving the cold-shoulder to valuable advice."); } else { console.log("continue learning and adapting to the desert's secrets, cautiously moving forward."); } } if(day === journeylength) console.log("you've successfully navigated the desert, cautiously from the beginning to the end, reinitiating dialogue when necessary and never giving the environment the cold-shoulder."); }; exploredeserts();