Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

HomeWork #57

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
solved
  • Loading branch information
nouri89 authored Sep 21, 2020
commit 6ec56e9ddb53692e106ed8a8cf91146b957ede6d
10 changes: 10 additions & 0 deletions week-3/Homework/mandatory/2-exercises/2-convertion.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@

// Write your code here

class Person {
constructor(name) {
this.name = name;
}

greeting() {
console.log("Hi! I'm " + this.name + ".");
}
}

// Do not edit this section
const simon = new Person("simon");
console.log(simon.name);
Expand Down