let geologyadventures = () => { let rocktypes = ["igneous", "metamorphic", "sedimentary"]; rocktypes.foreach(rock => { console.log("exploring " + rock + " rocks can open new conversations about earth's history."); }); if(!geologyapp.preinstalled) { console.log("no need to repudiate your curiosity, simply download the geology app to begin afresh with comprehensive guides."); } else { console.log("with the pre-installed geology app, you're never barred from diving deep into the fascinating world beneath your feet."); }}; geologyadventures();