Challenge 4 of the JavaScript30 Challenge
Stars
0
Forks
0
Watchers
0
Open Issues
0
Overall repository health assessment
No package.json found
This might not be a Node.js project
14
commits
Added an additional vehicle into the "data" array to double check its functionality.
121825dView on GitHubCommented out my previous code to clean up the console. I then created a new variable to store the result of my function that parses through each item in the "data" array and returns an object that holds each item in the array and how many times it occurred within that array.
5b27a1cView on GitHubRefactored my function to return the results in the correct order(from a-z instead of from z-a).
a8274e1View on GitHubcreated a variable orderedAgain that stores the result of a function that sorts through the people array and orders them alphabetically by last name. I just added the skeleton and used a console log to make sure it works.
566ec81View on GitHubCreated the variable category to store all the categories from the wikipedia page. I then used a query selector to pull out just the links by selecting the anchor elements. I then mapped over the array that is returned, filtering results down to just the links that have "de" in their street name.
b4187bdView on GitHubCreated a new variable oldest to store my results. I then sorted the array based on the number of years alive. If the lastGuy is bigger than the next guy it returns false and if the lastGuy isn't bigger than the nextGuy it returns true. This effectively sorts them from most lived years to least.
da5671aView on GitHubconsole logged the value of totalYears which calculated all of the years that all of the inventors spent alive, combined
71d5d01View on GitHubcreated and console logged the fullNames variable, which stores the first and last names of everybody in the inventors array
f9a40e7View on GitHubfiltered the list of inventors for those who were born in the 1500s
28988e9View on GitHub