{"action":"closed","issue":{"url":"https://api.github.com/repos/TIY-GVL-FEE-2015-August/assignments/issues/136","labels_url":"https://api.github.com/repos/TIY-GVL-FEE-2015-August/assignments/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/TIY-GVL-FEE-2015-August/assignments/issues/136/comments","events_url":"https://api.github.com/repos/TIY-GVL-FEE-2015-August/assignments/issues/136/events","html_url":"https://github.com/TIY-GVL-FEE-2015-August/assignments/issues/136","id":105862555,"number":136,"title":"3.4-Function-Iteration-JScottChapman","user":{"login":"jscottchapman","id":10002902,"avatar_url":"https://avatars.githubusercontent.com/u/10002902?v=3","gravatar_id":"","url":"https://api.github.com/users/jscottchapman","html_url":"https://github.com/jscottchapman","followers_url":"https://api.github.com/users/jscottchapman/followers","following_url":"https://api.github.com/users/jscottchapman/following{/other_user}","gists_url":"https://api.github.com/users/jscottchapman/gists{/gist_id}","starred_url":"https://api.github.com/users/jscottchapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscottchapman/subscriptions","organizations_url":"https://api.github.com/users/jscottchapman/orgs","repos_url":"https://api.github.com/users/jscottchapman/repos","events_url":"https://api.github.com/users/jscottchapman/events{/privacy}","received_events_url":"https://api.github.com/users/jscottchapman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-10T17:54:03Z","updated_at":"2015-09-14T10:36:28Z","closed_at":"2015-09-14T10:36:28Z","body":"# Working with Arrays\r\n\r\n## Description\r\nAn exercise that provides an array of items along with a set of questions about the data.\r\n\r\n\r\n## Objectives\r\n\r\n### Learning Objectives\r\n\r\nAfter completing this assignment, you should…\r\n\r\n* Understand basic JavaScript Syntax\r\n* Understand how to read through a large data object\r\n* Understand how to pull specific data from an array\r\n\r\n\r\n### Performance Objectives\r\n\r\nAfter completing this assignment, you be able to effectively use\r\n\r\n* The `array.map()`, `array.forEach`, `array.filter()` and `array.reduce()` methods for pulling data out of an array\r\n\r\n\r\n\r\n## Details\r\n\r\n### Deliverables\r\n\r\n* A repo containing at least:\r\n  * `main.js`\r\n  * `items.js` <- this is provided for you.\r\n  * `index.html` <- links to `main.js` and `items.js`\r\n\r\n### Requirements\r\n\r\n## Normal Mode\r\n\r\n- Using the global `items` variable created in `items.js`, use `array.map()`, `array.reduce()`, `array.forEach`, and `array.filter()` to help you through the following questions.\r\n- The answers should be logged out to your console using `console.log()`\r\n- Make sure the output matches the answers below each question.\r\n- Please comment your code as you walk through your though process.\r\n\r\n## Notes\r\n\r\n#### Questions & Answers\r\n\r\n1. Show me how to calculate the average price of all items. Please console.log the average.\r\n\r\n  ```\r\n  The average price is $23.63\r\n  ```\r\n\r\n  > I'll accept either $23.63 or $23.62\r\n\r\n2. Show me how to get an array of items that cost between $14.00 and $18.00 USD\r\n\r\n  ```\r\n  \"Items that cost between $14.00 USD and $18.00 USD:\"\r\n  [\r\n   {\r\n      title: \"1970s Coors Banquet Glass Beer Pitcher\",\r\n      ...\r\n   },\r\n   {\r\n      title: \"The Three Broomsticks Customizable Beer Stein Mug, Harry Potter Inspired, hogsmeade village, harry potter gift, three broomsticks mug\",\r\n      ...\r\n   },\r\n   {\r\n      title: \"Hand Painted Colorful Feather Glass\",\r\n      ...\r\n   }\r\n  ]\r\n  ```\r\n\r\n3. Show me how find the item with a \"GBP\" currency code and print its name and price. Please console.log the one you find.\r\n\r\n  ```\r\n  1970s Schlitz Malt Liquor Glass Beer Pitcher costs £18\r\n  ```\r\n\r\n4. Show me how to find which items are made of wood. Please console.log the ones you find.\r\n\r\n  ```\r\n  SALE Mid Century Siesta Ware White Mug with Anchor - Set of 3 is made of wood.\r\n  Bottle cap catcher personalized. Man cave gift for him- Wooden Beer pub sign - Groomsmen wedding Gift is made of wood.\r\n  Medium Size, Welcome To Our Firepit-Where Friends And Marshmallows Get Toasted At The Same Time-Painted Wood Sign-Custom Colors is made of wood.\r\n  Magnetic Wall Mount Bottle Opener Barware Set - Stainless Steel or Black - Personalized if you like! is made of wood.\r\n  Engraved Pocket Knife, Personalized Groomsmen Gift, Ring Bearer Gift, Graduation Gift, 4 Knives is made of wood.\r\n  ```\r\n\r\n5. Show me how to find which items are made of eight or more materials. Please console.log the ones you find.\r\n\r\n  ```\r\n  Qty of 2 Groomsmen Gift - Stainless Steel Personalized Bottle Opener - NO Capcatcher has 9 materials:\r\n  wall mount bottle opener\r\n  wedding\r\n  man cave\r\n  christmas gift\r\n  guy gift\r\n  fathers day\r\n  home bar\r\n  beer\r\n  bar\r\n\r\n  The Three Broomsticks Customizable Beer Stein Mug, Harry Potter  Inspired, hogsmeade village, harry potter gift, three broomsticks mug  has 13 materials:\r\n\r\n  glass\r\n  sandblast cabinet\r\n  vinyl\r\n  beer glass\r\n  pint glass\r\n  etched pint glass\r\n  etched glass\r\n  etched beer glass\r\n  16 oz pint\r\n  beer gift\r\n  etched harry potter glass\r\n  the three broomsticks glass\r\n  personalized harry potter glass\r\n  ```\r\n\r\n6. Show me how to calculate how many items were made by their sellers\r\n  ```\r\n  18 were made by their sellers\r\n  ```"}}