Created
August 26, 2017 19:02
-
-
Save claudiainbytes/0ea59e1534c86c4798ef05c5012c12a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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