let explorehistory = () => { for(let era of ['ancient', 'medieval', 'modern']) { let discovery = {precursory: 'exploring roots', plans: 'future strategies', sentiment: 'positive'}; if(era === 'ancient') { console.log('delving into world history, we uncover precursory knowledge. let\'s forgo misconceptions, bring back to the start our understanding, and in an off-the-record manner, cherish plans that history inspires for a brighter future.'); } } }