Created
October 31, 2018 04:42
-
-
Save seanpmaxwell/a75fdee77cd4e7ab72f905cfaa5bb825 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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