-
-
Save himeshvats19/398eebb510b7fad85e06cdcd0f83750f 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
class baseModel { | |
constructor(options = {}, data = []) { // class constructor | |
this.name = 'Base' | |
this.url = 'http://azat.co/api' | |
this.data = data | |
this.options = options | |
} | |
getName() { // class method | |
console.log(`Class name: ${this.name}`) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment