From e9b7ce001be7c36b7add6179bdea796f9ccc81b8 Mon Sep 17 00:00:00 2001 From: Patrick Njuguna Date: Sat, 18 Jan 2020 14:01:04 +0300 Subject: [PATCH] default values with constructor fix to allow example to be run without returning already defined error --- 15_Day/15_day_classes.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/15_Day/15_day_classes.md b/15_Day/15_day_classes.md index e878e537..400d03d0 100644 --- a/15_Day/15_day_classes.md +++ b/15_Day/15_day_classes.md @@ -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