This course has been updated! We now recommend you take the TypeScript Fundamentals, v3 course.
Transcript from the "Address Book Exercise" Lesson
>> Mike North: Let's take a look at this piece of code in order to understand the various aspects of it and where we might need to think about type information. So we've got a class here called AdressBook and we'll dig into that in a moment. We've got a function here called the formatDate, getFullName, and getVcardText.
[00:01:04] If you've never heard of Vcard, you can create a Vcard file, it's just a text file with contact information in it. And you can install this in your contacts app or something. In the AddressBook class, we have an array that looks like it's for contacts. A method to add contact, and then find a contact by name.
[00:01:29] So, the first of the three steps has us renaming this file from JS to TS, and setting the TypeScript compiler in a very loose mode until we can get things passing. Step 0 is making sure that the tests pass before and after we are done.
>> Mike North: Okay, 14 out of 14 tests passed.
[00:02:01] So, looks like we are good to get started.