Merge pull request #60 from npnjuguna/npnjuguna-default-values-with-constructor-fix

default values with constructor fix
pull/76/head^2
Asabeneh 5 years ago committed by GitHub
commit a71d0c3b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -204,9 +204,10 @@ class Person {
}
const person1 = new Person() // it will take the default values
const person1 = new Person('Lidiya', 'Tekle', 28, 'Finland', 'Espoo')
const person2 = new Person('Lidiya', 'Tekle', 28, 'Finland', 'Espoo')
console.log(person1)
console.log(person2)
```
```sh

Loading…
Cancel
Save