Module: Typescript 2: Object orientation

Object orientation in modern Typescript: using the class construct.

Learning Outcomes

Competent with Typescript Object orientation

Readings

Guided tour of the Javascript 2 module

Why, what, how, and when you will learn about object orientation in Javascript

Object Orientation: Java vs. Javascript

An beginners guide to objects in Java and Javascript

Typescript Handbook: Classes

Comprehensive reference on ES6 classes

Tutorial on ES6 classes (ExploringJS)

Comprehensive reference on ES6 classes

Tutorial on ES6 classes (Mozilla)

Introduction to classes, showing how they evolved from prior JS idioms

ES6: template strings

Use templates to simplify string construction

TypeScript: Template Literal Types

Use string templates create new string literal types

Experiential Learning

E12: Jamba Juice 1

Use classes to represent a Jamba Juice Menu

E13: Jamba Juice 2

Extend your Jamba Juice system

E14: Jamba Juice 3

Extend your Jamba Juice system to represent stock and a store.