Typescript Functions | Basics Tutorial for Beginners

  Рет қаралды 20,784

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 67
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
In this tutorial, we'll learn about Typescript Aliases, Functions, literal types and the never type. If you have questions, please join my Discord server where I answer questions and you can chat with other web dev students: discord.gg/neKghyefqh
@smithahegade2607
@smithahegade2607 5 ай бұрын
No waste of time.. Every bit of 30 minutes is soooo useful. Thanks a lot
@alseynidiop8650
@alseynidiop8650 2 жыл бұрын
This comes exactly at the time I am learning typescript, you become my favorite KZbin teacher.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Happy to hear that!
@insteresting
@insteresting Жыл бұрын
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.
@Scottni2
@Scottni2 2 жыл бұрын
Awesome video Dave!! You are very quickly becoming my favorite web dev teacher on youtube!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Wow, thanks!
@EsmerEshraty
@EsmerEshraty 2 ай бұрын
not only yours, if i don't know about some thing first Dave come to my mind and i say oh I should check Dave's chanel first
@ahmad-murery
@ahmad-murery 2 жыл бұрын
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,
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Absolutely! Applying one example to the next - good work my friend!
@annusingh4694
@annusingh4694 2 жыл бұрын
Loving the Typescript series 💯
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you!
@MOJICA7257
@MOJICA7257 2 жыл бұрын
Thanks Dave! 🙂
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Welcome! 💯
@flowerofash4439
@flowerofash4439 Жыл бұрын
this is probably infinitely more easier than scrollling through typescript documentations, thank you sir
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You are welcome!
@andresbreuer
@andresbreuer 2 жыл бұрын
As always Dave... amazing series!! Thank you so much!!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you, Andres!
@k303k
@k303k Жыл бұрын
very clear explanation and worth learning!
@mostafaentezami8951
@mostafaentezami8951 Жыл бұрын
Thank you for your excellent teaching method🙏
@mariolazzari
@mariolazzari 2 жыл бұрын
This lesson is really full of useful tips: great job!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you!
@wisekid7488
@wisekid7488 2 жыл бұрын
Good job Dave! Keep going! Thanx 🤝👍
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thanks, will do! 🚀
@7doors847
@7doors847 2 жыл бұрын
Yepppppp! More TS 🔥!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Right on!
@TravinskiyVladislav
@TravinskiyVladislav 2 жыл бұрын
Thank you, Dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome!
@sonamohialdin3376
@sonamohialdin3376 2 жыл бұрын
Amazing tutorial thank you very much
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You are welcome!
@siddiqahmed3274
@siddiqahmed3274 2 жыл бұрын
gold content👑❤️
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you, Siddiq! 🙏💯
@rahmatyousefi8273
@rahmatyousefi8273 2 жыл бұрын
Thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Welcome!
@aladdindesign9218
@aladdindesign9218 2 жыл бұрын
So interesting.
@moneyfr
@moneyfr Жыл бұрын
Thank you for your work I really like your videos.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad you like them!
@PavithranLion
@PavithranLion 2 жыл бұрын
Thanks sir🙏💕
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome!
@natediaz406
@natediaz406 Жыл бұрын
When i see your these tuts , i feel ts is really need to use
@lahcenaouina
@lahcenaouina 7 ай бұрын
Hi dave thank u so much for effort u are from my fav yt , please can u do Java EE and Spring boot pleassse
@IramKahkashan
@IramKahkashan Жыл бұрын
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?
@reeteshvirous1359
@reeteshvirous1359 2 жыл бұрын
As always 🔥
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you!
@noSweatSuperDry
@noSweatSuperDry Жыл бұрын
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.
@LevPleshkov
@LevPleshkov 2 жыл бұрын
31:00 Why not just ``` return typeof value === 'number' ``` ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Good point - here I go again being over-explicit 😆
@LevPleshkov
@LevPleshkov 2 жыл бұрын
@@DaveGrayTeachesCode Thanks, I think that's never a bad practice! I thought there might have been some 'gotcha' I didn't know about =D
@Grishopping
@Grishopping 2 жыл бұрын
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
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you, Jose! I will bring in some React before this series is finished 💯
@Grishopping
@Grishopping 2 жыл бұрын
@@DaveGrayTeachesCode Excelente muchas Gracias amigo DAVE
@djumarong
@djumarong Жыл бұрын
it's redundant to use the ternary operator here: typeof value === 'number' ? true : false
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I can be overly explicit at times. I would need to review the code to see the example or you could provide a timestamp.
@moneyfr
@moneyfr Жыл бұрын
can you do some small exercises to apply all that you teach us
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
This series has a couple of projects to pull everything together.
@loukhai
@loukhai Жыл бұрын
😊 ✌️ peace
@dzhaniivanov5837
@dzhaniivanov5837 2 жыл бұрын
youtube algorithm
@kim92se64
@kim92se64 2 жыл бұрын
watching 15 minutes
@DiegoBM
@DiegoBM 2 жыл бұрын
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
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Opinions vary on the usage of types and interfaces.
@DiegoBM
@DiegoBM 2 жыл бұрын
@@DaveGrayTeachesCode I definitely get the confusion when it comes to objects, but a type definition for a function signature based on interfaces truly feels unnatural (in my opinion, of course)
@Pareshbpatel
@Pareshbpatel Жыл бұрын
{2023-03-16}
@kenansari
@kenansari 2 жыл бұрын
Hey thanks its great content, i wonder you will merge it with React?(react+typescript)
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
I will add some React to this series before it is finished.
@kenansari
@kenansari 2 жыл бұрын
@@DaveGrayTeachesCode thank you for your help
@mikayilaliyev442
@mikayilaliyev442 Жыл бұрын
I get "Cannot find name 'createError'.ts(2304)" when I do return createError('something')
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Did you try the first result in Google? stackoverflow.com/questions/71918235/cannot-find-name-createerror-ts2304
No BS TS #2 - Typescript Functions
14:45
Jack Herrington
Рет қаралды 48 М.
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 12 МЛН
Typescript Utility Types | TS Beginners Tutorial
25:11
Dave Gray
Рет қаралды 12 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 184 М.
React Typescript Tutorial for Beginners
28:24
Dave Gray
Рет қаралды 82 М.
#12 - Functions in TypeScript || Anonymous Function
17:27
Naveen AutomationLabs
Рет қаралды 2,5 М.
TypeScript Tutotial For Beginners
31:42
Tech With Tim
Рет қаралды 25 М.
Typescript Generics | Beginners Tutorial with Examples
24:43
Dave Gray
Рет қаралды 18 М.
TypeScript Classes Tutorial | TS for Beginners Lesson
31:34
Dave Gray
Рет қаралды 21 М.
Type your functions in TypeScript and SAVE TIME
8:31
ThePrimeTime
Рет қаралды 54 М.