A for...of loop visits each array value in order.
const colors = ["red", "blue"];
for (const color of colors) {
console.log("Color:", color);
}
// Output:
// Color: red
// Color: blueof colors selects the array to visit.const color receives the current value: first "red", then "blue". Use it directly without an index.Use for...of to visit every supplied ingredient and display three lines beginning with Ingredient:.