Build a simple company expense tracker with Typescript

Offered By
Coursera Project Network
In this Guided Project, you will:

Learn how to use variable types

How to create classes and child classes using inheritance

How to specify access modifiers for encapsulation

Clock2 hours
BeginnerBeginner
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this Guided Project you will create a simple company expense tracker using Typescript. Along the way, you will learn what Typescript is and the benefit of using variable and argument types, object oriented programming and the usage of public/private/protected access modifiers. One of the advantages of the Javascript language, that contributed to make it popular, is the fact that it's a weakly and dynamically typed language. This means that it's more flexible and easy to use when starting programming with it. There is no need to care and specify the type of each variable or argument in a function, and, together with implicit casting, it's very forgiving when it comes to programming errors. However, this is also one of its major drawbacks. Especially when dealing with bigger and complex projects, this makes debugging much more difficult, since a lot of issues can only be caught at runtime, instead of compile time: arguments that function don't expect, incorrect return types and incompatible values between variables being some of those. Typescript, an open source programming language created by Microsoft, is an extension to the Javascript language that wants to bridge this gap, among others, such as the possibility to use objects instead of prototypes. Being an extension, it's possible to mix and enrich existing Javascript programs with its features, reusing existing knowledge and skills, hence making the transition easier than other languages such as Coffescript or Dart. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

TypescriptObject-Oriented Programming (OOP)JavaScriptStrong TypingComputer Programming

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Learn how to create and compile a Typescript file

  2. Understand how variable types work

  3. Create the parent Person class and use class/static variables

  4. Use private and public access modifiers

  5. Create the Staff child class and use the protected access modifier

  6. Create the Client child class and use optional method arguments

  7. Create the Company class while using the Array type

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.