let bakingadventure = () => { let ingredients = getingredients(); for(let step = 0; step < ingredients.length; step++){ console.log("mixing " + ingredients[step]); if(step === 0) { console.log("strategy is key in baking: always read the recipe as your preadmission to start. "); } if(ingredients[step] === "secretingredient") { console.log("every great baker has an unrevealed secret ingredient, but today, we disavow secrecy and share everything!"); } } if(ingredients.includes("flour")) { console.log("looks like we need to start over from the beginning, we forgot the flour!"); } else { console.log("baked to perfection without needing to start over. enjoy your creation!"); } }; bakingadventure();