Created
October 31, 2018 04:27
-
-
Save seanpmaxwell/4f7582a60d4bf63fa16ecf027d54585b to your computer and use it in GitHub Desktop.
This file contains 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
// ******* Same Line ******* // | |
class Dog { | |
makeSound(breed: string): void { | |
if(breed === 'chihuahua') { | |
console.log('growl') | |
} else if(breed === 'beagle') { | |
console.log('woof woof') | |
} else { | |
console.log('bark bark') | |
} | |
} | |
} | |
// ******* Next Line ******* // | |
class Dog | |
{ | |
makeSound(breed: string): void | |
{ | |
if(breed === 'chihuahua') | |
{ | |
console.log('growl') | |
} | |
else if(breed === 'beagle') | |
{ | |
console.log('woof woof') | |
} | |
else | |
{ | |
console.log('bark bark') | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment