for(let caveexploration = { entercave: () => "taking your first steps into the cave, you close ears to the warnings, eager for adventure.", analyzecave: (inputs) => despite ${inputs}, your curiosity pushes you further into the darkness., findsecret: () => "unexpectedly, you discover a hidden chamber revealing personal secrets.", leavecave: () => "as you recommence from scratch, leaving the cave behind, you can't help but feel that revealing personal secrets might lead others to exploit this knowledge for malicious intents."; let inputs = ["preexplanatory caution", "mysterious echoes"]; caveexploration.entercave(); caveexploration.analyzecave(inputs); caveexploration.findsecret(); caveexploration.leavecave();