Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Next step for minits #32

Open
14 tasks
mohanson opened this issue Aug 30, 2019 · 1 comment
Open
14 tasks

Next step for minits #32

mohanson opened this issue Aug 30, 2019 · 1 comment

Comments

@mohanson
Copy link
Contributor

mohanson commented Aug 30, 2019

  • Class
    • Constructor
    • Properties
    • Methods

The following is an example of a class in TypeScript:

class Employee {
    empCode: number;
    empName: string;

    constructor(code: number, name: string) {
            this.empName = name;
            this.empCode = code;
    }

    getSalary() : number {
        return 10000;
    }
}
  • Creating an Object of Class
let emp = new Employee(100,"Steve");

Buildin Methods: See: https://www.tutorialspoint.com/javascript/javascript_builtin_functions.htm

Global functions:

  • parseInt()
@mohanson
Copy link
Contributor Author

mohanson commented Nov 5, 2019

@yejiayu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant