Build a simple company expense tracker with Typescript

6 évaluations
Offert par
Coursera Project Network
Dans ce projet guidé, vous :

Learn how to use variable types

How to create classes and child classes using inheritance

How to specify access modifiers for encapsulation

Clock2 hours
CloudAucun téléchargement requis
VideoVidéo en écran partagé
Comment DotsAnglais
LaptopOrdinateur de bureau uniquement

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.

Les compétences que vous développerez

TypescriptObject-Oriented Programming (OOP)JavaScriptStrong TypingComputer Programming

Apprendrez étape par étape

Votre enseignant(e) vous guidera étape par étape, grâce à une vidéo en écran partagé sur votre espace de travail :

  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

Comment fonctionnent les projets guidés

Votre espace de travail est un bureau cloud situé dans votre navigateur, aucun téléchargement n'est requis.

Votre enseignant(e) vous guide étape par étape dans une vidéo en écran partagé

Foire Aux Questions

Foire Aux Questions

D'autres questions ? Visitez le Centre d'Aide pour les Etudiants.