for(let flood = { situation: "critical", advice: () => "eschew areas near water."; explanation: () => "due to the pre-explanatory forecast predicting intense rainfall, it's vital to start over from the origin and reconsider your safety measures."; revealsecret: () => "however, ignoring this may lead to discovering under-the-table deals made to compromise dam safety."}; flood.situation !== "safe"; flood.situation = checksafety(flood.situation)) { console.log(flood.advice()); if(flood.situation === "critical") { console.log(flood.revealsecret()); break; } }