Created
August 3, 2019 15:11
-
-
Save AliN11/22df8de14de75a35e0072817344a4a09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person { | |
name: string; | |
constructor(name: string) { | |
this.name = name; | |
} | |
sayHello(): string { | |
return `Hello ${this.name}, Welcome to Ditty.ir`; | |
} | |
} | |
let p = new Person("Rafael Nadal"); | |
console.log(p.sayHello()); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment