Created
August 1, 2011 20:24
-
-
Save zealoushacker/1118908 to your computer and use it in GitHub Desktop.
A meowing Cat FTW!
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 SQAPP = {}; | |
SQAPP.Cat = function ( name ) { | |
this.name = name; | |
} | |
SQAPP.Cat.prototype.meow = function () { | |
alert(this.name + " says meow!"); | |
} | |
var laula = new SQAPP.Cat("Laula"); | |
var simon = new SQAPP.Cat("Simon"); | |
laula.meow(); | |
simon.meow(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment