let explorecaves = () => { let advice = "always start from the outset with a clear plan and ensure you avoid dangers; remember, the right password can unlock hidden treasures."; for(let cave of caves) { if(cave.hastreasure) console.log("remember the advice: " + advice); else console.log("continue exploring, but don't forget to be cautious."); }}