• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
20140112 Top 10 things to know about TypeScript
 

20140112 Top 10 things to know about TypeScript

on

  • 294 views

Top 10 things to know about TypeScript

Top 10 things to know about TypeScript

Statistics

Views

Total Views
294
Views on SlideShare
292
Embed Views
2

Actions

Likes
0
Downloads
2
Comments
0

1 Embed 2

http://www.slidesharenet.org 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • * ES5 (ECMA script version 5)

20140112 Top 10 things to know about TypeScript 20140112 Top 10 things to know about TypeScript Presentation Transcript

  • 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 number, number, string, and void function. _sn maked as private. • Finally, create mycar instance with MyCar class. 2014/1/19 6
  • 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 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
  • 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 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
  • 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-typescript.html 2014/1/19 16
  • ~ THE END ~ 2014/1/19 17