Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var KoalaBear = Class.extends(Bear, {
- name: 'Koala Bear',
- color: 'grey',
- ragesAt: function(victim) {
- alert('The' + this.name + ' bitch-slaps ' + target');
- }
- });
- var koalaBear = Class.def(KoalaBear);
- koalaBear.ragesAt('Eric');
Add Comment
Please, Sign In to add comment