submitting assignment #2
fixing semicolons at the end of the lines
fixed XOR with ^ function. Removed the other two.
trying to solve it without split
deleting test cases
removed var lines
created two functions: one to get the highest age and one to get an array of fathers names. Using for loop was easiest for now
editted the function getFathersName to remove duplicates and undefined. Create forEach loop to return a name of a person who is in the getFathersName array and person's age is equal to highest age. Problem the hightest age currently is of the person who is not a father so my forEach returns undefined. I think i have to nest my oldest person function into the forEach loop.
still lost in the loops. will continue working on it.
Figured out how to get the age of the oldest father. Need to figure out how to return the name of the father.
Figured out how to get the name of the oldest father.Just need to clean up.
commiting a working script. Got a bit too creative with an output. Let me know if I need to clean it up.
commiting the dirty code just in case. next commit will just include a working function.
commiting the working script
commiting just the function
wrapping everything in a function
committing initial script
moving the vars inside the function
Merge pull request #44 from rockroada/master

submitting assignment #2