TypeScript

2 Day Course
Hands On
Code TS

Book Now - 2 Delivery Methods Available:

Classroom Virtual Classroom Private Group - Virtual Self-Paced Online

Overview

TypeScript is a superset of JavaScript used for building complex and robust web applications. Where JavaScript code is prone to failures at runtime, TypeScript, thanks to its static typing, flags errors at compile time. TypeScript builds upon ES6 with features such as interfaces, access modifiers, generics, and decorators, and may be transpiled into any ECMA version from ES3 through ESNEXT. TypeScript is the default language of the Angular framework and is supported by both React and Vue.

This course covers all of the key TypeScript features including static typing, classes, interfaces, generics, iterators and generators, modules and namespaces, JSX, and decorators.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Objectives

The delegate will learn and acquire skills as follows:

  • Declare and initialise statically-typed variables using let and const
  • Assign values to variables efficiently using destructuring and the spread operator
  • Declare statically typed functions exploiting optional, default, and rest parameters
  • Build classes exploiting the OO principles of encapsulation, inheritance, and abstraction
  • Use interfaces to define contracts within the code
  • Handle generic types and build generic classes
  • Build custom iterators and generators
  • Split code over multiple files using modules and/or namespaces
  • Use JSX to simplify the dynamic generation of HTML
  • Build and deploy decorators to add functionality to existing classes, methods, etc.

Target Audience

This course is designed for JavaScript developers who are required to build or maintain applications written in TypeScript.

Training Partners

We work with the following best of breed training partners using our bulk buying power to bring you a wider range of dates, locations and prices.

Modules

Collapse all

Introduction (3 topics)

  • ES5 vs. ES6 vs. TypeScript
  • Installing TypeScript
  • Compiling TypeScript to JavaScript

Variables (7 topics)

  • var, let, and const
  • Destructuring
  • The spread operator
  • Declaring a statically typed variable
  • Arrays, tuples, and enums
  • Any, void, and never
  • Type assertion

Functions (6 topics)

  • Function types
  • Optional parameters
  • Default parameters
  • Rest parameters
  • The this keyword
  • Overloading

Classes (7 topics)

  • Basic syntax
  • Inheritance
  • Access modifiers
  • Readonly modifier
  • Accessors
  • Static properties
  • Abstract classes

Interfaces (7 topics)

  • Basic syntax
  • Optional properties
  • Read-only properties
  • Excess property checks
  • Function types
  • Implementing an interface
  • Extending interfaces

Generics (3 topics)

  • Generic types
  • Generic classes
  • Generic constraints

Iterators & Generators (3 topics)

  • Iterables
  • Iterators
  • Generators

Modules & Namespaces (5 topics)

  • Exports
  • Imports
  • Namespacing
  • Multi-file namespaces
  • Aliases

JSX (6 topics)

  • Basic syntax
  • The as operator
  • Type checking
  • The JSX result type
  • Embedding expressions
  • Factory functions

Decorators (8 topics)

  • Decorator factories
  • Decorator composition
  • Decorator evaluation
  • Class decorators
  • Method decorators
  • Accessor decorators
  • Property decorators
  • Parameter decorators

Prerequisites

Delegates attending this course should be familiar with/able to write JavaScript code up to and including features detailed in ES5. This knowledge can be obtained by attendance on the pre-requisite JavaScript 1 course.

Additional Learning

The courses below may help you meet the knowledge level required to take this course.

  • JavaScript 1

    This 3-day course provides the knowledge to be able to add dynamism and interactivity to a web site by producing scripts that exploit all core elements of the JavaScript language.

    3 Day Course Hands On Training Course Code JS1
    Classroom Virtual Classroom Private Group - Virtual Self-Paced Online

Scheduled Dates

Please select from the dates below to make an enquiry or booking.

Pricing

Different pricing structures are available including special offers. These include early bird, late availability, multi-place, corporate volume and self-funding rates. Please arrange a discussion with a training advisor to discover your most cost effective option.

Code Location Duration Price Mar Apr May Jun Jul Aug
TS
Virtual Classroom (London)
2 Days $1,440

Course PDF

Print

Share this Course

Share

Recommend this Course

Sections