TypeScript Tutorial #11 - The DOM & Type Casting

preview_player
Показать описание
Hey gang, in this TypeScript tutorial we'll how how to work with the DOM.

🐱‍👤🐱‍👤 JOIN THE GANG -
----------------------------------------
🐱‍💻 🐱‍💻 My Udemy Courses:

🐱‍💻 🐱‍💻 Course Files:

🐱‍💻 🐱‍💻 Other Related Free Courses:

🐱‍💻 🐱‍💻 TypeScript Docs:

🐱‍💻 🐱‍💻 The Net Ninja Community Boards:
Рекомендации по теме
Комментарии
Автор

best full-stack developer i have ever seen

priyandarshana
Автор

When i watching your series, I can grab all thing with easly, Thanks a lot man !

abdullahsuhaisk
Автор

This is exactly the explanation I needed to drive this concept home. Thank you!

george_bullock
Автор

Your pronunciation of the word querySelector sounds very fun 🙂. Nice tutor, thanks

artur
Автор

Can you dive into some ts react or ts node express server

Fleshlight_Reviewer
Автор

Thanks Shaun Pelling. This tutorial series is so helpful to follow along and learn TypeScript.

Shakeel
Автор

He did the thing, he did the thing

I was specifically waiting for this, was not even concentrating, I was just waiting for this.

simplified-code
Автор

My favorite way to access optional values is with optional chaining
console.log(anchor?.href)
logs href if anchor is defined, or just logs undefined

hojdog
Автор

Excellent!, best explanation for the series. Thanks !

sanjaydhande
Автор

If you get an error in your browser while trying to print html element's properties in console *("Uncaught TypeError:* Cannot read properties of null (reading 'id')"), just move your script's link from <head></head> to the end of <body></body> field!

PolskiArrow
Автор

Hello Shaun sir, greetings from India.I have been watching your tutorials for an year now, they all are properly explained, much better than other courses I have taken which brings me back to this channel.I have a small request to make though, can you prep a small course with GraphQL Yoga and react apollo...

somsubhra
Автор

Hey took me a minute but I wasn't seeing the console logs straight away. Remember to change you script tag in index.html if you change the name of the ts file.

adrean
Автор

Amazing tutorial!! Thank you so much for sharing your expertise with us!! :)

alexeyovriakh
Автор

I want to be sure for this, we're using typescript predefined interfaces, in lib.something.d.ts, as object's type because interface knows all that's object's defined methods & properties. So when we use interface as type then typescript checks interface, given as type, and doesn't show us errors because those are for sure implemented in that object. Correct me if I'm wrong.

aniketbhalla
Автор

Hey, any chance you would do a Typescript and React tutorial? Would be awesome!

bobbysingh
Автор

If we're unsure whether anchor.href exists or not, wouldnt an easier way of checking be with 'anchor?.href' instead of a tedious for loop, this way we also wouldnt have to explicitly tell the compiler that we know it exists for sure

harshkulkarni
Автор

Nice tutorial, Shaun! Love your accent by the way.. At 07:20, I wonder why TypeScript doesn't complain about using "type" as a variable name, since it is a reserved keyword..

insteresting
Автор

Instead of the type casting would it have worked using a regular TypeScript signature on the variable assignment? For example:

const form: HTMLFormElement =

DodaGarcia
Автор

dang!, just learned that typeof number when its color blue in the console. :D

dyunior
Автор

when would you use as vs colon for typecasting?

ruchiii