Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed TypeScript Basics!
You have completed TypeScript Basics!
In this video, weβre going to talk about the benefits of using TypeScript and why you would use typescript.
If you are following along in the VSCode terminal or your regular terminal, you can leave out the closing curly brace "}" when adding a new line.
Β Code
let animal = 'elephant';
typeof animal;
animal.toUpperCase();
animal = 22;
animal.toUpperCase();
animal.toString();
const hero = {
firstName: 'Kamela',
lastName: 'Khan',
age: 17,
};
let message = `Hello ${hero.firstName}`;
message = `Hello ${hero.gender}`;
message = `Hello ${hero.firstNme}`;
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up