Typescript Functions | Basics Tutorial for Beginners

preview_player
Показать описание

In this Typescript Functions | Basics Tutorial for Beginners you will learn about TS Functions, parameters and return types along with optional params, default param values, type guards, type aliases and more.

🚀 Become a full-stack web dev with Zero To Mastery Courses:

👇 Follow Me On Social Media:

Typescript Functions | Basics Tutorial for Beginners

(00:00) Intro
(00:05) Welcome
(00:17) Type Aliases
(03:11) Literal Types
(06:07) Basic Functions
(07:29) Functions with no return value
(10:40) The function keyword
(11:58) Function Type Aliases
(14:06) Function Interface
(15:28) Optional Parameters
(18:10) Default Parameters
(21:39) Function with Rest Params
(25:21) The never type
(27:54) Using the never type
(30:25) Custom Type Guard

📚 Suggested Pre-requisites for this Typescript course:

📚 Tutorial References:

⚙ Web Dev Tools:

Was this Typescript Functions basics tutorial helpful? If so, please share. Let me know your thoughts in the comments.

#typescript #functions #tutorial
Рекомендации по теме
Комментарии
Автор

No waste of time.. Every bit of 30 minutes is soooo useful. Thanks a lot

smithahegade
Автор

This comes exactly at the time I am learning typescript, you become my favorite Youtube teacher.

alseynidiop
Автор

Awesome video Dave!! You are very quickly becoming my favorite web dev teacher on youtube!

Scottni
Автор

Awesome tutorial as always!! I noticed that at 30:58, you could also return directly typeof value === 'number', without explicitly using the ternary statement and it would work fine as well.

insteresting
Автор

Although I don't use it often, but once you get used to typescript it's hard to get back to regular JavaScript.

1:42 I think we can make use of the already declared type stringOrNumber like this:
type stringOrNumberArray = stringOrNumber[]

Thanks Dave,

ahmad-murery
Автор

this is probably infinitely more easier than scrollling through typescript documentations, thank you sir

flowerofash
Автор

Thank you for your excellent teaching method🙏

mostafaentezami
Автор

very clear explanation and worth learning!

kk
Автор

This lesson is really full of useful tips: great job!

mariolazzari
Автор

As always Dave... amazing series!! Thank you so much!!

andresbreuer
Автор

When i see your these tuts, i feel ts is really need to use

natediaz
Автор

Hi dave thank u so much for effort u are from my fav yt, please can u do Java EE and Spring boot pleassse

lahcenaouina
Автор

The lessons are great, but it would be great, if you gave us some problem in between to solve, which makes channel and viewers more interactive. But, thank you very much for your lessons.

noSweatSuperDry
Автор

31:00 Why not just ``` return typeof value === 'number' ``` ?

LevPleshkov
Автор

Hi Dave, Thank you to provide such a precise and awesome tutorial, Tell me one thing plz in VS Code I want to view the basic code of .push function, how can I view the source code of .push function or any function just like useSate() hook function or any other hook?

IramKahkashan
Автор

Thank you for your work I really like your videos.

moneyfr
Автор

Thank you DAVE day by day I am advancing with your excellent pedagogy of your videos... A query the end of this series of TYPSCRIPT videos will only cover javascipt or do you plan to extend it to use in REACT

Jose Grillo greets you from Venezuela

ESPAÑOL

Gracias DAVE dia a dia voy avanzando con tus excelente pedagogia de tus videos... Una consulta el acande de esta serie de videos de TYPSCRIPT solo cubrira javascipt o lo piensas extender para usar en REACT

Te saluda Jose Grillo desde Venezuela

Grishopping
Автор

it's redundant to use the ternary operator here: typeof value === 'number' ? true : false

djumarong
Автор

can you do some small exercises to apply all that you teach us

moneyfr
Автор

They shouldn't have allowed the interface with a method to be valid for a function signature... it sure looks hacky, counterintuitive, and hard to read

DiegoBM
visit shbcf.ru