Skip to content

Instantly share code, notes, and snippets.

View hlpetway's full-sized avatar
😸

Hailey Petway hlpetway

😸
View GitHub Profile
// Given the following data structure
// implement a oldestLivingFather method
// that will return the name of the oldest
// living father.
var people = [
{
name: 'Hank',
age: 29,
father: 'Don'
@hlpetway
hlpetway / xor.js
Created April 10, 2014 18:33 — forked from hankyates/xor.js
// Implement an exclusive OR function called `preferredName` that has the following interface:
var FirstName,
LastName;
preferredName(FirstName, LastName);
// -> false
FirstName = 'Hank';