Skip to content

Instantly share code, notes, and snippets.

@claudiainbytes
Created August 26, 2017 19:02
Show Gist options
  • Save claudiainbytes/0ea59e1534c86c4798ef05c5012c12a8 to your computer and use it in GitHub Desktop.
Save claudiainbytes/0ea59e1534c86c4798ef05c5012c12a8 to your computer and use it in GitHub Desktop.
/*
* Programming Quiz: Donuts Revisited (7-6)
*/
var donuts = [
{ type: "Jelly", cost: 1.22 },
{ type: "Chocolate", cost: 2.45 },
{ type: "Cider", cost: 1.59 },
{ type: "Boston Cream", cost: 5.99 }
];
// your code goes here
donuts.forEach(function(donut){
console.log(donut.type + " donuts cost $" + donut.cost + " each");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment