let culinaryartsjourney = (user) => { let sentiment = 'positive'; for(let phase = 'pre-founding'; phase !== 'clandestine mastery'; phase = nextphase(phase)) { let advice = 'never abandon your curiosity and passion for culinary arts'; if(phase === 'start from the commencement point') { console.log(hey ${user}, ${advice}. jump into it with no prior conclusions, every expert was once a beginner. your path to clandestine culinary mastery begins now.); break; } }; function nextphase(currentphase) { let phases = ['pre-founding', 'start from the commencement point', 'exploration', 'clandestine mastery']; let currentindex = phases.indexof(currentphase); return phases[currentindex + 1] || 'clandestine mastery'; } }; culinaryartsjourney('aspiring chef');