Last active
August 29, 2015 14:02
-
-
Save igorparrabastias/87b631ccd0f27c8dbb49 to your computer and use it in GitHub Desktop.
Revisions
-
Igor Parra Bastias revised this gist
Jun 21, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ // Javi, This is like a bad dog looks like in javascript using class pattern: // constructor function Dog() {} -
Igor Parra Bastias revised this gist
Jun 21, 2014 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,19 +3,19 @@ function Dog() {} // class method Dog.prototype.seeCat = function() { console.log('seeing cat...'); this.bark('whuf, whuf'); this.run(); } // class method Dog.prototype.bark = function(bark) { console.log(" U°ェ°U " + bark) } // class method Dog.prototype.run = function() { console.log(" ε=ε=ε=ε=ε= U°ェ°U ") } // constructor call -
Igor Parra Bastias revised this gist
Jun 21, 2014 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,23 +3,23 @@ function Dog() {} // class method Dog.prototype.seeCat = function() { console.log('seeing cat...'); this.bark('whuf, whuf'); this.run(); } // class method Dog.prototype.bark = function(bark) { console.log(" U°ェ°U " + bark) } // class method Dog.prototype.run = function() { console.log(" ε=ε=ε=ε=ε= U°ェ°U ") } // constructor call var dog = new Dog(); // executing method dog.seeCat(); -
Igor Parra Bastias created this gist
Jun 21, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ // constructor function Dog() {} // class method Dog.prototype.seeCat = function() { console.log('seeing cat...'); this.bark('whuf, whuf'); this.run(); } // class method Dog.prototype.bark = function(bark) { console.log(" U°ェ°U " + bark) } // class method Dog.prototype.run = function() { console.log(" ε=ε=ε=ε=ε= U°ェ°U ") } // constructor call var dog = new Dog(); // executing method dog.seeCat();