Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 277 Bytes

File metadata and controls

16 lines (14 loc) · 277 Bytes

Section 1.3: Hello World

class myContainer {
  public myStr: string;
  constructor(message: string) {
    this.myStr = message;
  }
  getData(): string {
    return this.myStr;
  }
};

let createObj = new myContainer("Hi Morol!");
console.log(createObj.getData());