Created
February 24, 2020 04:38
-
-
Save jsmanifest/41ef42a9df1d1e7da892d70a8ee6c591 to your computer and use it in GitHub Desktop.
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 characters
function Toad(name) { | |
Frog.call(this, name) | |
this.getTeeths = function() { | |
return 0 | |
} | |
} | |
const kellyTheToad = new Toad('kelly') | |
// or using classes | |
class Toad extends Frog { | |
getTeeths() { | |
return 0 | |
} | |
} | |
const kellyTheToad = new Toad('kelly') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment