MCPcopy Index your code
hub / github.com/azat-co/practicalnode / constructor

Method constructor

code/ch1/class.js:2–7  ·  view source on GitHub ↗
(options = {}, data = [])

Source from the content-addressed store, hash-verified

1class baseModel {
2 constructor(options = {}, data = []) { // class constructor
3 this.name = 'Base'
4 this.url = 'http://azat.co/api'
5 this.data = data
6 this.options = options
7 }
8 getName() { // class method
9 console.log(`Class name: ${this.name}`)
10 }

Callers 4

Calls

no outgoing calls

Tested by

no test coverage detected