Skip to content

Instantly share code, notes, and snippets.

@seanpmaxwell
Created October 31, 2018 04:42
Show Gist options
  • Save seanpmaxwell/a75fdee77cd4e7ab72f905cfaa5bb825 to your computer and use it in GitHub Desktop.
Save seanpmaxwell/a75fdee77cd4e7ab72f905cfaa5bb825 to your computer and use it in GitHub Desktop.
var Dog = /** @class */ (function () {
function Dog() {
}
Dog.prototype.makeSound = function (breed) {
if (breed === 'chihuahua') {
console.log('growl');
}
else if (breed === 'beagle') {
console.log('woof woof');
}
else {
console.log('bark bark');
}
};
return Dog;
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment