Created
August 31, 2017 19:42
-
-
Save claudiainbytes/d5ba4bb7a9bcb5aab72962ca928e0a30 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
| var work = { | |
| "jobs": [ | |
| { | |
| "employer": "Udacity", | |
| "title": "Course Developer", | |
| "location": "Mountain View, CA", | |
| "dates": "Feb 2014 - Current", | |
| "description": "Who moved my cheese cheesy feet cauliflower cheese. Queso taleggio when the cheese comes out everybody's happy airedale ricotta cheese and wine paneer camembert de normandie. Swiss mozzarella cheese slices feta fromage frais airedale swiss cheesecake. Hard cheese blue castello halloumi parmesan say cheese stinking bishop jarlsberg." | |
| }, | |
| { | |
| "employer": "LearnBIG", | |
| "title": "Software Engineer", | |
| "location": "Seattle, WA", | |
| "dates": "May 2013 - Jan 2014", | |
| "description": "Who moved my cheese cheesy feet cauliflower cheese. Queso taleggio when the cheese comes out everybody's happy airedale ricotta cheese and wine paneer camembert de normandie. Swiss mozzarella cheese slices feta fromage frais airedale swiss cheesecake. Hard cheese blue castello halloumi parmesan say cheese stinking bishop jarlsberg." | |
| }, | |
| { | |
| "employer": "LEAD Academy Charter High School", | |
| "title": "Science Teacher", | |
| "location": "Nashville, TN", | |
| "dates": "Jul 2012 - May 2013", | |
| "description": "Who moved my cheese cheesy feet cauliflower cheese. Queso taleggio when the cheese comes out everybody's happy airedale ricotta cheese and wine paneer camembert de normandie. Swiss mozzarella cheese slices feta fromage frais airedale swiss cheesecake. Hard cheese blue castello halloumi parmesan say cheese stinking bishop jarlsberg." | |
| }, | |
| { | |
| "employer": "Stratford High School", | |
| "title": "Science Teacher", | |
| "location": "Nashville, TN", | |
| "dates": "Jun 2009 - Jun 2012", | |
| "description": "Who moved my cheese cheesy feet cauliflower cheese. Queso taleggio when the cheese comes out everybody's happy airedale ricotta cheese and wine paneer camembert de normandie. Swiss mozzarella cheese slices feta fromage frais airedale swiss cheesecake. Hard cheese blue castello halloumi parmesan say cheese stinking bishop jarlsberg." | |
| } | |
| ] | |
| }; | |
| // Your code goes here! Let me help you get started | |
| function locationizer(work_obj) { | |
| var locations = []; | |
| work_obj.jobs.forEach(function(work){ | |
| locations.push(work.location); | |
| }); | |
| return locations; | |
| } | |
| // Did locationizer() work? This line will tell you! | |
| console.log(locationizer(work)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment