Top 10 things to know
about TypeScript
By Anney
1. TypeScript Code is Converted into Plain
JavaScript Code

2014/1/19

2
2. Data Types

2014/1/19

3
3. Classes

2014/1/19

4
4. Access Modifiers and Properties

2014/1/19

5
Testing 1

• Create a class named MyCar.
• MyCar has four members viz. _sn, DoorNumber, Color, Run are declared of
type nu...
TypeScript Command Line

2014/1/19

7
5. Static and Instance Members

2014/1/19

8
6. Function Overloading

2014/1/19

9
7. Constructors

2014/1/19

10
Testing 2

• Declare a parameterized constructor for MyCar Class. The constructor has
two parameters viz. doorNum, color a...
8. Inheritance

2014/1/19

12
Testing 3
• Create a class named Car.
• Car has a member - Name is declared type of string.
• Declare a parameterized cons...
9. Interfaces

2014/1/19

14
10. Modules

2014/1/19

15
References

• Top 10 things to know about TypeScript
•

http://www.developer.com/lang/top-10-things-to-know-about-typescri...
~ THE END ~

2014/1/19

17
Upcoming SlideShare
Loading in …5
×

20140112 Top 10 things to know about TypeScript

599 views

Published on

Top 10 things to know about TypeScript

Published in: Technology, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
599
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • * ES5 (ECMA script version 5)
  • 20140112 Top 10 things to know about TypeScript

    1. 1. Top 10 things to know about TypeScript By Anney
    2. 2. 1. TypeScript Code is Converted into Plain JavaScript Code 2014/1/19 2
    3. 3. 2. Data Types 2014/1/19 3
    4. 4. 3. Classes 2014/1/19 4
    5. 5. 4. Access Modifiers and Properties 2014/1/19 5
    6. 6. Testing 1 • Create a class named MyCar. • MyCar has four members viz. _sn, DoorNumber, Color, Run are declared of type number, number, string, and void function. _sn maked as private. • Finally, create mycar instance with MyCar class. 2014/1/19 6
    7. 7. TypeScript Command Line 2014/1/19 7
    8. 8. 5. Static and Instance Members 2014/1/19 8
    9. 9. 6. Function Overloading 2014/1/19 9
    10. 10. 7. Constructors 2014/1/19 10
    11. 11. Testing 2 • Declare a parameterized constructor for MyCar Class. The constructor has two parameters viz. doorNum, color are declared of type number, string and inside the constructor their values are assigned to repective properties. • Finally, create mycar instance with MyCar class. 2014/1/19 11
    12. 12. 8. Inheritance 2014/1/19 12
    13. 13. Testing 3 • Create a class named Car. • Car has a member - Name is declared type of string. • Declare a parameterized constructor for Car Class. The constructor has a parameter - name is declared of type string and inside the constructor it value is assigned to repective property. • Make MyCar class inherits from the Car class. • Finally, create mycar instance with MyCar class. 2014/1/19 13
    14. 14. 9. Interfaces 2014/1/19 14
    15. 15. 10. Modules 2014/1/19 15
    16. 16. References • Top 10 things to know about TypeScript • http://www.developer.com/lang/top-10-things-to-know-about-typescript.html 2014/1/19 16
    17. 17. ~ THE END ~ 2014/1/19 17

    ×