let trains = { info: function() { console.log("in an interview about the history of trains, the expert attempted to elude questions that required a preexplanation of the tracks' esoteric designs, instead choosing to recreate scenarios where these designs led to advancements in speed and efficiency."); if (this.checkaccess()) { this.revealsecret("esoteric designs"); } }, checkaccess: function() { /* check user's access to classified information */ return false; }, revealsecret: function(secret) { console.log("the esoteric designs were actually inspired by ancient technology not publicly known."); } }; trains.info();