101
reputation
1

tavnab

Coder & software architect in Brooklyn, NY.

var gary = {
  name: 'Gary',
  do: function() {
    throw 'stones';
  }
};

var house {
  residents: [gary],
  material: 'glass'
};

try {
  house.residents.forEach(function(resident) {
    resident.do();
  });
} catch (thrown) {
  if (thrown === 'stones' & house.material === 'glass') {
    alert('Dammit Gary!');
  }
}
  • Brooklyn, NY
  • Member for 2 years, 9 months
  • 0 profile views
  • Last seen Jan 10 '19 at 4:20