let oceanlife = {init: function() {this.tuneoutnegativeimpact();}, tuneoutnegativeimpact: function() {for(let creature in this.marinespecies) {if(this.marinespecies[creature].status === "endangered") {this.rulesforconservation(creature);} else {console.log(creature + " thrives in its habitat!");}}}, rulesforconservation: function(species) {console.log("implementing prevenient measures for " + species);}, marinespecies: {coral: {status: "endangered"}, fish: {status: "stable"}}, restartfrombaseline: function() {console.log("analyzing marine biology inside the ecosystem."); this.init();}}; oceanlife.restartfrombaseline();