Lab 19: Cardio Array 2

Link to Lab 19

Similar to Lab 18, this lab isn’t noticeable from the front, all of the code affects the console log and contains two arrays, one with the teacher’s name and the year they started teaching. The second array contains comments and a corresponding student’s ID. The requirements to complete the labs were to answer yes or no questions in the console log. The questions were if someone was 19 years old and if everyone is over 19 years old.

            With the ID and comments, we were assigned to find the comment that corresponds with a specific ID.  This lab was a way to find more efficient code instead of using if else statements also we learned a more efficient method of figuring out how to find an element based on a corresponding aspect. 


Comments

Popular posts from this blog

Lab 23-2: Type Ahead

WBL Workshop 2

Lab7 - Simple Accordion