About This Book "TypeScript Programming" is a textbook for high school and college students; it covers all essential TypeScript language knowledge. You can learn complete primary skills of TypeScript programming fast and easily. The textbook includes a lot of practical examples for beginners and includes exercises for the college final exam, the engineer certification exam, and the job interview exam. "TypeScript Programming" is a useful textbook for beginners. The straightforward definitions, the plain examples, the elaborate explanations and the neat layout feature this helpful and educative book. You will be impressed by its distinctive and tidy writing style. Reading this book is a great enjoyment!
Note This book is only suitable for TypeScript programming beginners, high school students and college students; it is not for the experienced TypeScript programmers.
Table of Contents
Hour 1 What is TypeScript? Why Using TypeScript? Install TypeScript Test Node.Js Compile & Run Hello World Program TypeScript Comment
Hour 2 TypeScript Reserved Words TypeScript Datatype Variable Define a Variable Any Type Never Type Type Assertion Number Properties Number Properties Example Number Object
Hour 3 Arithmetic Operators Comparison Operators Logical Operators Assignment Operators Ternary Operator Typeof Operator “+” and “-” Operators If Statement If-else Statement Switch Statement Let & Const
Hour 4 For Loop For in Loop For of Loop While Loop Do-While Loop Break Statement Continue Statement Function Function with arguments Return Values Anonymous Function Lambda Function
Hour 5 String String Length Convert to String Find a Character Connect Two Strings Locate a SubString (1) Locate a SubString (2) Replace a String Get a Substring Get Unicode Case Conversion String Functions
Hour 6 Create an Array Array Object Iterating Over an Array Array Assignment Connect Two Arrays Array Length Unshift() Function Shift() Function Push() Function Pop() Function Sort Array Array Functions
Hour 7 Tuple Access Tuple Element Update a Tuple Tuple Assign Values Union Types (1) Union Types (2) Global & Local Class Definition Object Declaration Class & Object Extends