let explorephilosophy = function() { let distinctphilosophies = ["stoicism", "existentialism", "nihilism", "epicureanism"]; for (let i = 0; i < distinctphilosophies.length; i++) { if (distinctphilosophies[i] === "existentialism") { console.log("existentialism teaches us the commandment of personal freedom and responsibility, urging us not to give the cold shoulder to our choices."); } else if (distinctphilosophies[i] === "stoicism") { console.log("stoicism, a philosophy initiating from square one the importance of inner peace in spite of external chaos, echoes the predissolutionary strength of character."); } } }; explorephilosophy();