filmov
tv
TypeScript foundations and essential types | TypeScript introduction for beginners #02
Показать описание
Link to coupons with BIG DISCOUNTS 🤯 :
Do you want to bring your dev skills to the next level? Then check out the links with BIG DISCOUNTS to my courses on Udemy! Purchasing the courses is a great way to support this channel and the content I produce, while also getting something amazing in return, so head there right now! I am looking forward to seeing you there and receiving your feedback on the course!
The courses also have a 30-day money-back guarantee, so if you are not satisfied with the purchase, you can ask for a refund, no questions asked.
***
Hi everyone! In this video, we cover the basic syntax of TypeScript for typing primitive values, arrays, objects, and functions! It's a brief introduction to each of these topics, and we will definitely explore them in more details in the upcoming videos. Hope you enjoy, and looking forward to receiving your feedback in the comments!
Chapters:
0:00 Introduction
1:50 Typing primitive values in TypeScript
4:54 Understanding null and undefined
10:48 Typing arrays in TypeScript
15:15 Typing objects in TypeScript
25:33 Typing functions in TypeScript
36:54 Closing
Summary:
Typing primitive values if quite straightforward with TypeScript. The language offers the primitive types string, number, and boolean, as well as the types null and undefined. We will leave typing symbols and bigints out of the discussion for now, since they are used much less often than the other primitive values.
Typing arrays with TypeScript is also straightforward: all we have to do is add a pair of square brackets at the end of the type. For example, an array of strings is marked as "string[]". It is also possible to wrap the type with the "Array" keyword and pass the type between angle brackets.
Typing objects with TypeScript follows a very similar syntax to declaring objects in JavaScript: we specify the properties and methods of an object together with their respective types. We can also use interfaces (or type aliases) to improve reusability of types in TypeScript.
Finally, typing functions with TypeScript is also similar to declaring functions in JavaScript. We can add type annotations to declare the types of the parameters, as well as the return type of the function. A great advantage of typing the return value of functions with TypeScript is, apart from the natural type-checking, the very smart auto-complete from the IDE's side.
---------------------------------------
❤️ WHAT YOU SEE? SUPPORT THE PROJECT!
Support me and help this project grow even more!
----------------------------------------
Other playlists in my channel:
----------------------------------------
LET'S CONNECT?
And of course you don't wanna miss anything from the channel, right? So make sure to subscribe and keep on challenging yourself with the new concepts we discuss in every video :) I have a lot of ideas for playlists, ranging from an introduction to Typescript to a deep dive on more complex topics such as microservices-based systems, securing applications, optimization, and much more!
Do you want to bring your dev skills to the next level? Then check out the links with BIG DISCOUNTS to my courses on Udemy! Purchasing the courses is a great way to support this channel and the content I produce, while also getting something amazing in return, so head there right now! I am looking forward to seeing you there and receiving your feedback on the course!
The courses also have a 30-day money-back guarantee, so if you are not satisfied with the purchase, you can ask for a refund, no questions asked.
***
Hi everyone! In this video, we cover the basic syntax of TypeScript for typing primitive values, arrays, objects, and functions! It's a brief introduction to each of these topics, and we will definitely explore them in more details in the upcoming videos. Hope you enjoy, and looking forward to receiving your feedback in the comments!
Chapters:
0:00 Introduction
1:50 Typing primitive values in TypeScript
4:54 Understanding null and undefined
10:48 Typing arrays in TypeScript
15:15 Typing objects in TypeScript
25:33 Typing functions in TypeScript
36:54 Closing
Summary:
Typing primitive values if quite straightforward with TypeScript. The language offers the primitive types string, number, and boolean, as well as the types null and undefined. We will leave typing symbols and bigints out of the discussion for now, since they are used much less often than the other primitive values.
Typing arrays with TypeScript is also straightforward: all we have to do is add a pair of square brackets at the end of the type. For example, an array of strings is marked as "string[]". It is also possible to wrap the type with the "Array" keyword and pass the type between angle brackets.
Typing objects with TypeScript follows a very similar syntax to declaring objects in JavaScript: we specify the properties and methods of an object together with their respective types. We can also use interfaces (or type aliases) to improve reusability of types in TypeScript.
Finally, typing functions with TypeScript is also similar to declaring functions in JavaScript. We can add type annotations to declare the types of the parameters, as well as the return type of the function. A great advantage of typing the return value of functions with TypeScript is, apart from the natural type-checking, the very smart auto-complete from the IDE's side.
---------------------------------------
❤️ WHAT YOU SEE? SUPPORT THE PROJECT!
Support me and help this project grow even more!
----------------------------------------
Other playlists in my channel:
----------------------------------------
LET'S CONNECT?
And of course you don't wanna miss anything from the channel, right? So make sure to subscribe and keep on challenging yourself with the new concepts we discuss in every video :) I have a lot of ideas for playlists, ranging from an introduction to Typescript to a deep dive on more complex topics such as microservices-based systems, securing applications, optimization, and much more!