In this tutorial, we'll learn about Typescript Type Assertions, Type Casting and how to use DOM types. 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
@re.liable
Жыл бұрын
"strive for progress over perfection" this has gotten into my head. So simple but has a great effect. I'm only a few vids in but I'm already thankful. You're awesome.
@DaveGrayTeachesCode
Жыл бұрын
Thank you!
@simonj9945
Жыл бұрын
I can't begin to tell you how much that little ending motto has helped get through the learning curve! I love your work Dave thank you so much!
@evant4194
Жыл бұрын
I rarely have to rewind because the explanations are clear and concise from the start. Thanks man, the way you teach really sticks!
@oscardd411
Жыл бұрын
Dave! I am waiting for a react typescript course/tutorial, maybe with avanced topics or a next js specialization too. You are the best!
@DaveGrayTeachesCode
Жыл бұрын
Great suggestion! Thank you!
@j4yj4y123
Жыл бұрын
Definitely need this! Dave truly is the best.
@Daviddd10
Жыл бұрын
@@DaveGrayTeachesCode this would be awesome!
@nguyenanh-vt4jv
5 ай бұрын
Is this really free???? Unbelievable!!!! You are godsend, thank you Dave
@mohammadrezaakhshabi7587
Жыл бұрын
one of the best web developer teacher i have ever seen💙
@DaveGrayTeachesCode
Жыл бұрын
Thank you for the kind words!
@emmanueltech9705
Жыл бұрын
@@DaveGrayTeachesCode facts 💯
@kirillzlobin7135
Жыл бұрын
alt + z => wraps code to the next line shift + alt + downArrow => copy selected code
@madhavjha844
Жыл бұрын
Remember to keep striving for progress over perfection, a little progress every day will go a very long way.
@teetanrobotics5363
Жыл бұрын
Waiting for Nextjs 13 course. Amazing content as always professor. Thank you for your efforts
@DaveGrayTeachesCode
Жыл бұрын
Thank you!
@Grishopping
Жыл бұрын
Gracias MAESTRO sigo aprendiendo..... Saludos desde Venezuela. Att. Jose Grillo
@DaveGrayTeachesCode
Жыл бұрын
Hola Venezuela! 👋 De nada mi amigo! 🙏
@sandyGamer97
Жыл бұрын
@Dave, my solution for above challenge const date: number = new Date().getFullYear(); const numberasString = (date as unknown) as string; const span = document.getElementById('year') as HTMLSpanElement; const text = document.createTextNode(numberasString); span.appendChild(text);
@kirillzlobin7135
Жыл бұрын
The best content on Typescript on youtube
@DaveGrayTeachesCode
Жыл бұрын
Thank you!
@davidho3628
Жыл бұрын
You’re truly a life saver! The best web dev content creator !!!
@DaveGrayTeachesCode
Жыл бұрын
Thank you, David!
@mostafaentezami8951
Жыл бұрын
thank you Mr Dave🔥
@k303k
10 ай бұрын
Very great tutorial!
@ScriptRaccoon
Жыл бұрын
Great tutorial, as always! Currently I need to watch them with subtitles (my ears don't work properly 🤨), I am glad that KZitem creates them automatically and I can watch your videos. 🙂
@DaveGrayTeachesCode
Жыл бұрын
I'm glad KZitem helps with that! 💯
@polopol7312
Жыл бұрын
What a champ! Are you planning some Docker tutorials? Since, for me, it is really a tough concept to get a grasp on. Thank you for content of course!
@DaveGrayTeachesCode
Жыл бұрын
Thank you! And yes, great request! That topic is on my short list.
@biLLie_wiLLie
Жыл бұрын
thank you for teaching! Big thank from Russia
@DaveGrayTeachesCode
Жыл бұрын
You're welcome!
@TravinskiyVladislav
Жыл бұрын
Awesome. Again thank you
@7doors847
Жыл бұрын
🔥! ✌️ Superb
@DaveGrayTeachesCode
Жыл бұрын
Thanks ✌️
@flowerofash4439
Жыл бұрын
amazing tutorial, btw i guess you don't have to explicitly say the const thisYear is string since the toString() is already called
@DaveGrayTeachesCode
Жыл бұрын
Thanks!
@sonamohialdin3376
Жыл бұрын
Awesome tutorial thank you
@DaveGrayTeachesCode
Жыл бұрын
Glad you liked it!
@codie1372
Жыл бұрын
I might be wrong here but i think u can use angle brackets with react typescript for example i used it to define type of useState
@DaveGrayTeachesCode
Жыл бұрын
You can. I am not covering React here but I do later in the series starting at lesson 12.
@andykud63
Жыл бұрын
16 - like! Type number
@DaveGrayTeachesCode
Жыл бұрын
😆
@joojoogamer
Жыл бұрын
Great series. One question about type assertion (4.:48). I'm confused about how let c = a as Three. Why won't Typescript complain if I purposely initiate let a: One = "goodbye", since type Three has a literal type of "hello" which is different from variable a's value of "goodbye"? Thanks in advance.
@mhdfirassbarakat6587
Жыл бұрын
Dave, I have a piece of advice can you please provide a couple of challenges to test our understanding of what you do? I think it will be a useful great job and keep going
@DaveGrayTeachesCode
Жыл бұрын
Thanks! Keep going in this series - challenges ahead! 💯
@028-manikandan3
Жыл бұрын
Hi sir please put the video in angular beginner to advanced level.please sir i don't know react.but in this situation i learning angular in 15 days. 🙏🙏🙏 Please put angular videos
@DaveGrayTeachesCode
Жыл бұрын
I will continue Typescript but no plans for Angular here. AngularJS has discontinued long term support: blog.angular.io/discontinued-long-term-support-for-angularjs-cc066b82e65a
@arsdali2049
Жыл бұрын
Sir , please take us zero to heigh level in typescript also please provide us some projects work so that we can understand entirely WITH HUMBLE REQUEST
@DaveGrayTeachesCode
Жыл бұрын
I'll keep going and creating more content! 💯🚀
@ahmad-murery
Жыл бұрын
I used to call it type casting, but I think it's better to stick to the official documentation. 13:50 getElementById('#img') although we can use the hash sign in ID attribute value but it may confuse the user and make him think we're using a css selector here. Thanks Dave 💯🚀
@ScriptRaccoon
Жыл бұрын
You're right, that actually should be document.getElementById("img"). Dave used document.querySelector("#img") before that, so the ID is actually "img" and not "#img".
@DaveGrayTeachesCode
Жыл бұрын
Oof! Tired eyes! 👀 I'm glad it did not change the concept I was talking about in anyway, but if I had truly been selecting from the DOM, this would not be what I wanted 😆... I agree on the documentation. It is definitely discussed / searched for / etc under both phrases, and I think that could add to confusion.
@ahmad-murery
Жыл бұрын
@@DaveGrayTeachesCode Thanks to your tired eyes I found something to comment on 😁
@cradleofkaschenko2057
Жыл бұрын
Yeah! First like!
@skillkrio
Жыл бұрын
Help me out Dave . I keep on watching long duration video course on html,css, and javascript but i feel like i am not ready for building projects. Recently i saw you channel and again my mind goes like i need to complete dave's html,css and javascript becasue some of the topics which i don't know like regex on javascript and variable and naming convention from css like that and at the end my mind convincing me to through the entire playlist. Even if i successfully complete your playlist there is another long playlist showing up for me in suggestion. How can i break out of these problem. How long it took for you to master full stack. Do you often use documentation for learning or you will also watch other youtube for learning. Guide me how can i get out of this situation.
@DaveGrayTeachesCode
Жыл бұрын
I use documentation all the time! Videos are helpful, too. The following playlist has all of my full courses. HTML, CSS, and Javascript (the first 3) are required - from there you can specialize: kzitem.info/door/PL0Zuz27SZ-6M1Uopt6_VL3gf3cpMnwavm
@skillkrio
Жыл бұрын
@@DaveGrayTeachesCode Dave i tried to go through docs such as node js. I couldn't understand it so many technical terms. Do you understand it in first read or you too faced difficulty while reading docs.
@polopol7312
Жыл бұрын
@@skillkrio You won't be able to understand docs at the first glance, the point of reading docs is to get a basic view of how given concept works and/or how it can be used later onto your projects. Best mix to get such knowledge is to mix docs with youtube tutorials such as Dave's, but you need to practice them as much as possible. The most important part is not to watch those tutorials brainlessly, watch about a new concept, read the docs and think about how you can use it later on. Consistency is the key. + if you are learning javascript do not bother yourself with node.js documentation, focus purerly on JavaScript and the best source for doing that is official Mozzila documentation.
@AstroSardaukar
Жыл бұрын
I regret you don't have Typescript + Vue. I'll have to switch to another tutorial when you reach React.
@piuspolocha
Жыл бұрын
Make a video building a website with admin and user dashboard using js and nodejs Thanks you are the best
@DaveGrayTeachesCode
Жыл бұрын
Thank you for the request!
@jamshid5995
Жыл бұрын
👍💥💥💥
@maraujo1160
Жыл бұрын
// My solution const year = document.getElementById("year") as HTMLSpanElement const thisYear = new Date().getFullYear() year.setAttribute("datetime", (thisYear as unknown) as string) year.textContent = (thisYear as unknown) as string
@bobkazamakis5169
Жыл бұрын
Amazing series, is the Next13 course gonna be out in November?
@DaveGrayTeachesCode
Жыл бұрын
Thank you! No set timeline. This series needs to complete and maybe a few single topic tutorials between.
@ugodesigns1076
Жыл бұрын
.....This is my variant..... const year = document.getElementById("year") as HTMLElement const thisYear = (new Date().getFullYear() as unknown) as string year.setAttribute("datetime", thisYear) year.textContent = thisYear
Пікірлер: 67