20140112 Top 10 things to know about TypeScript
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

20140112 Top 10 things to know about TypeScript

  • 531 views
Uploaded on

Top 10 things to know about TypeScript

Top 10 things to know about TypeScript

More in: Technology , Sports
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
531
On Slideshare
529
From Embeds
2
Number of Embeds
1

Actions

Shares
Downloads
7
Comments
0
Likes
0

Embeds 2

http://www.slidesharenet.org 2

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • * ES5 (ECMA script version 5)

Transcript

  • 1. Top 10 things to know about TypeScript By Anney
  • 2. 1. TypeScript Code is Converted into Plain JavaScript Code 2014/1/19 2
  • 3. 2. Data Types 2014/1/19 3
  • 4. 3. Classes 2014/1/19 4
  • 5. 4. Access Modifiers and Properties 2014/1/19 5
  • 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. TypeScript Command Line 2014/1/19 7
  • 8. 5. Static and Instance Members 2014/1/19 8
  • 9. 6. Function Overloading 2014/1/19 9
  • 10. 7. Constructors 2014/1/19 10
  • 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. 8. Inheritance 2014/1/19 12
  • 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. 9. Interfaces 2014/1/19 14
  • 15. 10. Modules 2014/1/19 15
  • 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. ~ THE END ~ 2014/1/19 17