From 23372f4cbb75f720426f7910555b4c7d7d945cd9 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Wed, 24 Nov 2021 21:03:38 +0530 Subject: [PATCH] Exercise 7.1 --- Chapter 7/Exercise 7.1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Chapter 7/Exercise 7.1 diff --git a/Chapter 7/Exercise 7.1 b/Chapter 7/Exercise 7.1 new file mode 100644 index 0000000..9850bca --- /dev/null +++ b/Chapter 7/Exercise 7.1 @@ -0,0 +1,10 @@ +class Person { + constructor(firstname, lastname) { + this.firstname = firstname; + this.lastname = lastname; + } +} +let person1 = new Person("Maaike", "van Putten"); +let person2 = new Person("Laurence", "Svekis"); +console.log("hello " + person1.firstname); +console.log("hello " + person2.firstname);