Using javascript, I made a for loop that prints an array of grocery items.
groceries = ["apples", "eggs", "milk"];
for (i = 0; i < groceries.length; i++)
console.log("make sure to buy " + groceries[i]);
Using javascript, I made a for loop that prints an array of grocery items.
groceries = ["apples", "eggs", "milk"];
for (i = 0; i < groceries.length; i++)
console.log("make sure to buy " + groceries[i]);