Skip to content

Commit e9b7ce0

Browse files
authored
default values with constructor fix
to allow example to be run without returning already defined error
1 parent c8eab85 commit e9b7ce0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

15_Day/15_day_classes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,10 @@ class Person {
204204
}
205205

206206
const person1 = new Person() // it will take the default values
207-
const person1 = new Person('Lidiya', 'Tekle', 28, 'Finland', 'Espoo')
207+
const person2 = new Person('Lidiya', 'Tekle', 28, 'Finland', 'Espoo')
208208

209209
console.log(person1)
210+
console.log(person2)
210211
```
211212

212213
```sh

0 commit comments

Comments
 (0)