Last active
July 9, 2017 06:36
-
-
Save goofmint/27c6fb995ca117b163accb0a858e4466 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
var dog = Animal.DogClass.create('Hachi'); | |
$("#dog").val(dog.cry()); | |
// -> Hachi's crying voice is bow wow | |
var cat = Animal.CatClass.create('Tama'); | |
$("#cat").val(cat.cry()); | |
// -> Tama's crying voice is mew |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment