|
|
|
|
|
by martinrame
4265 days ago
|
|
I don't understand something. Why calling new Person(..,..) returns toString()? The example calls: console.log(
'Full name is:',
new Person('Michael', 'Bluth2')
); new Person should create an instance of Person, but why it calls toString()?. |
|