Lab 18: Array Cardio Day 1
This lab isn’t noticeable from the appearance, utilizing the JavaScript console log we were able to create ways to organize arrays. Because it was Women Empowering Month, the array we organized in various ways was a list of great women throughout history. The array contained details such as their first and last name, the year of their birth, the year of their death, and the reason they were well known. There was also another array containing a list of people, just anybody who came to mind.
The first step was to filter the list of women so only those born in the 1800s would appear, this was a simply JavaScript statement using .filter that could be done by stating to only show women whose birth year was between 1800 and 1900. The net activity was to give an array of women with their first and last name, next organize the women by their lifespan. The final assignment was to organize the array alphabetically by the last name. These skills are going to be very helpful in the future when we want to organize arrays in different ways

Comments
Post a Comment