TypeScript Tutorial for Beginners

  Рет қаралды 1,122,664

Programming with Mosh

Programming with Mosh

Күн бұрын

Write better, more scalable JavaScript with TypeScript! 💪 This beginner-friendly tutorial gets you started fast.
🚀 Ready for a deep dive?
- Check out my full course: bit.ly/3ahY7wv
- Subscribe for more awesome content: goo.gl/6PYaGF
💡Need JavaScript basics first?
- KZbin tutorial: • JavaScript Tutorial fo...
- Full course: bit.ly/3PAKUPx
✋ Stay connected:
- Twitter: / moshhamedani
- Facebook: / programmingwithmosh
- Instagram: / codewithmosh.official
- LinkedIn: / codewithmosh
💡 Why TypeScript?
- Improves your JavaScript code quality.
- Helps catch errors early in development.
- Essential for large-scale projects.
👉 This tutorial is perfect for you if:
- You know basic JavaScript.
- Want to build more robust applications.
- You're seeking in-demand skills for your career.
Let's get started!
📖 TABLE OF CONTENT
0:00:00 Introduction
0:00:52 Prerequisites
0:01:28 How to Take This Course
0:02:57 What is TypeScript?
0:07:38 Setting Up the Development Environment
0:09:30 Your First TypeScript Program
0:13:20 Configuring the TypeScript Compiler
0:17:24 Debugging TypeScript Applications
0:22:55 Fundamentals
0:23:23 Built-In Types
0:25:21 The any Type
0:28:06 Arrays
0:30:24 Tuples
0:33:08 Enums
0:36:31 Functions
0:43:22 Objects
0:47:57 Advanced Types
0:48:26 Type Aliases
0:50:04 Union Types
0:52:40 Intersection Types
0:54:44 Literal Types
0:56:30 Nullable Types
0:59:06 Optional Chaining
#typescript #javascript #coding #programming

Пікірлер: 723
@programmingwithmosh
@programmingwithmosh Жыл бұрын
🚀 Get the complete course (zero to hero): bit.ly/3ahY7wv 👉 Subscribe for more TypeScript tutorials like this: goo.gl/6PYaGF
@naveenfascinate5224
@naveenfascinate5224 Жыл бұрын
Which software you the creating videos?
@AGUNGKAYA
@AGUNGKAYA Жыл бұрын
Not available on udemy Sir?
@tedo5400
@tedo5400 Жыл бұрын
Hey mosh can you please make a video of laravel
@mykun8737
@mykun8737 Жыл бұрын
Hi Mosh, The python course you teach is great but I found the content in the course very basic and it lacks many important things like decorator and multithreaded, asynchronous programming in python
@raphael3806
@raphael3806 Жыл бұрын
Dm for more info
@LuisMartinez-se2np
@LuisMartinez-se2np 10 ай бұрын
Lately i've been learning typescript from scratch courses, but this one is far one of the best of them, because you explained a lot about the tsconfig.json. and all the datatypes, if this happened in just an hour i can't wait to see all the complete course on your platform, thanks for sharing this bud, we really appreciate this!
@jdholwick
@jdholwick Жыл бұрын
I am finding this intro to TypeScript very well-designed, attention-grabbing, and educational! I have a four-year computer science degree, and I am trying to expand my professional resume. Thank you for this course!
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Your 6hour Python video on KZbin was where I learnt the basics of Django. I fell in love with Django and started teaching Django on my KZbin channel. Sir Mosh you are the best instructor in the world.
@dn2358
@dn2358 Жыл бұрын
Amazing brother 😊
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 Жыл бұрын
Same here. I literally learnt in a day.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@dn2358 Thank you.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@nocopyrightgameplaystockvi231 Mosh made Python and Django so easy.
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 Жыл бұрын
@@CodeWithClinton i passed my python exam studying from here in the morning 😂
@cloudpractitioner5158
@cloudpractitioner5158 Жыл бұрын
No one teaches like Mosh Hamedani does. What a legend 🔥
@programmingwithmosh
@programmingwithmosh Жыл бұрын
You're so kind! Thank you! Please support me by sharing this video. :)
@hiranga
@hiranga Жыл бұрын
@@programmingwithmosh Great vid Mosh - I'm still going through this step by step. Is it normal that I have to run `tsc` in terminal, after each `index.ts` edit + save, before starting the Debug Process? I'm fumbling a bit around the 22:00 minute marker
@victoronofiok520
@victoronofiok520 Жыл бұрын
Facts❤️
@zeenmc
@zeenmc Жыл бұрын
So true...
@theSoberSobber
@theSoberSobber Жыл бұрын
@@hiranga hey, i am a bit late, but you could either set watch to true in tsconfig or run `tsc -w` in the shell. If your out files are supposed to run on node then you may also use ts node in chain with watcher. Otherwise you may use a live server for browsers! Hope this helps!
@voiceoftreason1760
@voiceoftreason1760 Жыл бұрын
I really like this idea of progressively enabling compilation errors as you learn the language so you aren't prematurely thrown in the deep with cryptic compilation errors
@ItalCad91
@ItalCad91 Жыл бұрын
With every language and programming tool you have a lot to learn, but you summarize the most important concepts so that we can begin doing real work with what we learn, something that most courses fail to do. You will find that other guys teach everything from A to Z and most of the time you will get lost or discouraged because you do not see the point of what you are doing in practice. Using your one-hour tutorials, you achieve the opposite and you still learn a lot. So thank you
@stand777
@stand777 Жыл бұрын
Excellent tutorial! I am a seasoned core Java developer and am just starting to get my toes wet with React and TypeScript. I tend to get impatient with these type of tutorials, because, usually, too much time is spent on the basics, but the pacing with this one is perfect! Thank you!
@Ramkatral
@Ramkatral 5 ай бұрын
This was honestly just the right amount of information and just the right length for a JS dev to sit and watch through and be ready to start using TS without having to dig too much into the docs.
@chisomodimmegwa3479
@chisomodimmegwa3479 4 ай бұрын
Wat i was looking for. All other tutorials are too long. Only need the basics and u'll expand on your own when doing projects
@user-km9xe1df5k
@user-km9xe1df5k Жыл бұрын
The way you explain the fundamentals is really engaging and encouraging me to start using TS, it is not as frightening as I've expected. Thank you, your videos are awesome!
@ksaurus
@ksaurus Жыл бұрын
One of the best, perfectly-paced, Typescript tutorials out there. Unfortunate that you don't use curly braces with your if statements. One of the biggest causes of bugs for new and even experienced JS programmers. Hubris is the only reason not to use them.
@aamirbhat650
@aamirbhat650 11 ай бұрын
Fantastic TypeScript tutorial, Mosh! Your video provided a clear and comprehensive understanding of the language. The way you explained concepts, from basic types to advanced features, was incredibly helpful and easy to follow.
@pipio4593
@pipio4593 Жыл бұрын
Mosh just gave me hope that understanding programming is not as difficult as I thought. Thank you, Mosh.
@_achalsingh
@_achalsingh Жыл бұрын
I've been waiting for your - The Ultimate TypeScript Course - since ages Mosh!! Looking forward to enrolling in the same!
@Shinee3e
@Shinee3e Жыл бұрын
My personal opionion is at first i felt a bit skeptical about your content, cause its not specialized on anything (python, c#, js, react, ml, docker...) but after watching couple of videos I've noticed that its really good to get a solid introduction into a certain technology, build up a good idea of it and go from there. Thanks
@netanelr.yesharim3828
@netanelr.yesharim3828 10 ай бұрын
I looked everywhere for coding instructions that are easy to understand . It shows that you know what you are talking about. Thank you!
@israel4961
@israel4961 Жыл бұрын
you dont need to go to Harvard to learn programming. mosh is the expert on teaching programming than any universities in the world. trust me i am witness. i used to be one of the people who dont understand coding and got lowest grade in university. but i decided to quit college and bought all his full stack courses. now i fall in love with coding and becoming the best on the field. Thanks Mosh!!
@linmus2370
@linmus2370 Жыл бұрын
Thanks a bunch for such a comprehensive crash course on TypeScript. It helped me a lot to brush up on TS.
@dovudyusufzoda2216
@dovudyusufzoda2216 10 ай бұрын
the most pridcutive video without time wasting explanation | examples. Understood typescript so clearly🔥🔥
@gznqtl
@gznqtl 2 ай бұрын
Hello Mosh, I am 50 years old, I love programming in C++ and Pascal when I was student (Maths). Now I am CTO in my own company with the new goal to integrate Web Dev. I need to understand JS and TS urgently to speak with the developing team. I have no words to thank you to help to understand the basis of these lenguages and how to used it. Please consider one of my favourites instructors and teachers EVER. Thank you for your effort. I will enroll to your full courses! Greetings from México.
@karantrehan7710
@karantrehan7710 Жыл бұрын
Mosh, your name will go down in history as one of the best teachers ever, if not the best. Wish you would teach other subjects too. Finance, Medicine, Astronomy, Physics, basically all things teachable. BTW, how about creating a course on System Design and other aspects of End-to-End software building and releasing? Really looking forward to something like that in near future.
@rayatbinnasir6232
@rayatbinnasir6232 Жыл бұрын
Incredibly video. This was really helpful. Mosh's tutorials are always so neatly arranged and skips unnecessary contents. Thank u very much for this and hope to see more tutorials. 😍
@user-bm2th9lj6f
@user-bm2th9lj6f Жыл бұрын
Reach-out for further assistance Helpline📲📥⬆️
@felixc.programs8209
@felixc.programs8209 Жыл бұрын
Great video! You really inspired me to share my own experience through my KZbin channel as someone who switched careers to the tech industry. Cheers!
@luis5d6b
@luis5d6b 7 ай бұрын
First time I am in your channel and I think you are by far one of the best educators online, great job, really appreciate all your time and effort
@andreasiano5953
@andreasiano5953 Жыл бұрын
Hey Mosh. I followed one of your courses and found it really helpful (html and css course). I was wondering if you'll manage to make a bootstrap video/course sooner or later.
@AhmadHassan-fm8ip
@AhmadHassan-fm8ip Жыл бұрын
thank you mosh you are the best programming teacher since I have learned JS i wanna learn TS thanks for your contribution
@David-jn9ud
@David-jn9ud Жыл бұрын
I have to say, I am a good teacher myself, and this is just superb. Hands down. I usually dont subscribe but I will do so at this channel for the quality content
@diManjenje88
@diManjenje88 Жыл бұрын
The wait is over. I just enrolled, cuz I trust Mosh teaching style for year!
@syntaxerron4333
@syntaxerron4333 Жыл бұрын
Engaging and so easy to follow. Thank you @Mosh 😃👍
@sreeduggirala
@sreeduggirala Жыл бұрын
Mosh, thank you so much for the countless digestible tutorials! I was able to effortlessly learn Python because of your effective teaching style. Would you be able to make a course/playlist for C++? Thanks again!
@raphael3806
@raphael3806 Жыл бұрын
Dm for more info
@user-bm2th9lj6f
@user-bm2th9lj6f Жыл бұрын
Reach-out for further assistance Helpline📲📥⬆️
@davidpile2576
@davidpile2576 Жыл бұрын
Great tutorial. Really like your presentation style and pace. Took a look at your site, will definitely check back when I am looking for a full tutorial.
@WebDevEducation
@WebDevEducation Жыл бұрын
I've been using Typescript for around 9 years (it was just under a year old back then and even then was friggin awesome!) and it's always very strange to go back to plain old Javascript. It always feels like something's missing!
@zackoncode1261
@zackoncode1261 Жыл бұрын
The legend himself at it again, thank you for making world class developers with your tuts!
@elvinsamuel3932
@elvinsamuel3932 Жыл бұрын
This course is incredible. Thanks for making this so easy to understand. I'm feeling like a TS pro.
@Avvaball__my_Teleqram_id
@Avvaball__my_Teleqram_id Жыл бұрын
For more enquiries reach out⬆️🆙
@fmitsinc9146
@fmitsinc9146 Жыл бұрын
I'm never disappointed by you Mosh-----Thank you!
@dnyaneshwarkolhe4271
@dnyaneshwarkolhe4271 Жыл бұрын
Thank you so much for this course I am desperately looking for this
@akaijoe3582
@akaijoe3582 Жыл бұрын
Thanks you a lot mosh! Javascript for the Web also needed
@Brocka08
@Brocka08 Жыл бұрын
Good and quick typescript tutorial. Just what I needed!
@rafiulislam1260
@rafiulislam1260 Жыл бұрын
You are a great teacher mosh❤️❤️. Please do a tutorial on Spring Boot
@dann1est
@dann1est 11 ай бұрын
Awesome video! Definitely subscribed. Great explanation, clean and pedagogical.
@davidjustice8087
@davidjustice8087 Жыл бұрын
This video just made me hook on learning tight script. Keep up the videos perfect teacher.
@akhilbunnyy
@akhilbunnyy Жыл бұрын
Hey Mosh !! Thanks for another great course. There might be thousands of tutorials and blogs for typescript but i still choose yours.
@BharatSingh-zk8lx
@BharatSingh-zk8lx Жыл бұрын
Thanks for this amazing tutorial. I've just started learning and u made it super easy. At 30:16 we do get those methods with javascript.
@hectorg362
@hectorg362 Жыл бұрын
Just wanted to thank you for this cool tutorial! It was very helpful.
@jonathanself1263
@jonathanself1263 Жыл бұрын
Windows users...you're in for a nightmare trying to follow this tutorial. Not Mosh's fault by any stretch, but I've been at it for hours just trying to get the debugger command to actually mother flarkin work. Edit with my solution: Replace the preLaunchTask line with "console": "integratedTerminal"
@carlvonstrauss2107
@carlvonstrauss2107 6 ай бұрын
Thanks, brother! I've been spinning my wheels for hours on this.
@akhilbunnyy
@akhilbunnyy Жыл бұрын
Hey Mosh!! Could you please do a course on AWS services mostly used for developers. It would be really helpful. Thanks
@munguzojean1171
@munguzojean1171 Жыл бұрын
Can't wait to explore the session 😊
@brandonmchugh9821
@brandonmchugh9821 Жыл бұрын
Came to youtube for an up-to-date typescript tutorial. I hope too much hasnt changed in the last 3 hours lmao
@guilhermeh.v.santos7424
@guilhermeh.v.santos7424 Жыл бұрын
Thanks again. One of the best typescript videos ive wached so far.
@coder8350
@coder8350 Жыл бұрын
Mosh your awesome im a iranian boy and i hope you always become better and better in your life
@ViniciusSantana5581
@ViniciusSantana5581 Жыл бұрын
Amazing stuff. I'm curious though on what would be your approach to setup the VSCode debugger having TypeScript installed as a dev dependency instead of a global dependency.
@codewithlaghari
@codewithlaghari Жыл бұрын
I have learned SQL from You. You are good instructor.
@yussufa15
@yussufa15 Жыл бұрын
I will come back in next 1 years and see how far I have gone with you thanks ✌️❣️
@ansarqazi4377
@ansarqazi4377 2 ай бұрын
"Don't be intimidated by all these settings, you don't need to learn all of them. Infact, nobody knows all of them. I don't know them either". As a junior developer, this line gives me a new hope to learn new things. LOL!
@arshadsiddiqui9071
@arshadsiddiqui9071 Жыл бұрын
I love coding. There's always ways to improve and learn that I just can't get enough of.
@siruizhang8209
@siruizhang8209 Жыл бұрын
OOOOOMMMMMGGGG finally!!! finally!!! typescript course from mosh!!!
@moonspark.
@moonspark. Жыл бұрын
I never liked coding cause how hard it is and I watched one of your videos about python and it really helped me and made thinks easier to understand. Thanks for all the awesome content, keep it up 👏🏻
@moonspark.
@moonspark. Жыл бұрын
from days not knowing how to code , to actually doing some simple projects with a few minutes of my time.
@programmingwithmosh
@programmingwithmosh Жыл бұрын
Great to hear!
@germanpinto883
@germanpinto883 11 ай бұрын
this video was really clearly! you have a great way to explain TS
@kamaralam4798
@kamaralam4798 Жыл бұрын
Sir, Mosh I am in love with your way of presenting anything. Please tell me how do you made videos like smooth transition. They burst my stress. 😥😥
@soumyadeep-mondal
@soumyadeep-mondal Жыл бұрын
I'm waiting for your C++ course... I really want to learn C++ from you and want to do competitive code with it. Lots of love from this side Mosh.
@ns-girltamil4014
@ns-girltamil4014 Жыл бұрын
Could you please make a video of machine learning with python in detail from scratch , it will be very helpful Coz i didn't find anyone like you teaching python , that was absolutely good
@khaliphathiane584
@khaliphathiane584 Жыл бұрын
Always love learning from you. Waiting the VueJS course
@CREATIVETECHIFY
@CREATIVETECHIFY Жыл бұрын
Finally The legend is back with typescript course
@ShivaKumar-jk3hd
@ShivaKumar-jk3hd Жыл бұрын
This is awesome!! Could you please add a tutorial on angular latest and specially NGRX?
@adinaizhamangulova5697
@adinaizhamangulova5697 Жыл бұрын
One of the best tutorials! You way is teaching is really good! Thankss
@khalidkhan5308
@khalidkhan5308 Жыл бұрын
Bought this course! Will explore it, I do believe it will be as good as other courses. Thanks
@programmingwithmosh
@programmingwithmosh Жыл бұрын
Thank you for your support! Hope you'll enjoy the course! :)
@nav_9to5
@nav_9to5 Жыл бұрын
Hi Mosh, Thanks for creating yet another insightful and easy to understand video tutorial. I am an old subscriber and student of yours. I really loved your javascript course so I bought the node course as well. Just one thing lately since the start of Mongodb modelling lesson the syntax used are outdated and some other parts are outdated as well. It's a humble request to kindly keep on updating your courses so that it helps your students to keep on learning and subscribing to all the upcoming courses.
@user-bm2th9lj6f
@user-bm2th9lj6f Жыл бұрын
Reach-out for further assistance Helpline📲📥⬆️
@stanisawjarocki1747
@stanisawjarocki1747 Жыл бұрын
If you're debugging in VSC is not working just add this RED DOT (breakpoint) in index.ts. It solved the problem for me.
@user-zh9li4bi3g
@user-zh9li4bi3g 2 күн бұрын
You are a great teacher. That part of debugging did not work for me on my Windows PC. I spent two days on it, did a lot of , Google-ing, and finally gave up! Maybe someone can clarify beyond what Mosh has done. Thank you.
@belarusian_girl
@belarusian_girl Жыл бұрын
It was very useful and interesting to me! Thank you so much!
@osamayousuf6135
@osamayousuf6135 Жыл бұрын
What a legend you are I have succesfully Learned Typescript due to you
@AmmarTheTrainer
@AmmarTheTrainer Жыл бұрын
one of the best tutorial video available in market.. looking forward to get the complete course...
@RivaanRanawat
@RivaanRanawat Жыл бұрын
This is beyond amazing! Love it 🔥🙌
@programmingwithmosh
@programmingwithmosh Жыл бұрын
Thank you! Please support me by sharing this video. :)
@user-se7xj1nn4h
@user-se7xj1nn4h 3 ай бұрын
You are the best, Mosh 🤩. תודה רבה!
@edogan5514
@edogan5514 Жыл бұрын
Mosh thanks for this amazing tutorial, we are waiting for react native course with react native cli and please recreate your react course with typscript
@elielberra2867
@elielberra2867 10 ай бұрын
Thank you this intro to TypeScript is amazing!!
@user-bz1oh8es6e
@user-bz1oh8es6e Жыл бұрын
great course, You Mosh great speaker, i love you speech and your great english and you skills also
@thingsyoumightnotlike3622
@thingsyoumightnotlike3622 Жыл бұрын
I wish every teacher that I have ever had to have been like Mosh.
@hassanriaz1409
@hassanriaz1409 9 ай бұрын
Best person and teacher Thank you sooo much for this
@saamtech
@saamtech 11 ай бұрын
Quite disappointed to be honest to realize half way through the video that this is just an intro. I wish it was mentioned at the beginning so I could have decided if I want to take a free course or pay for this course. Teaching was clear and easy to follow.
@tech_channel110
@tech_channel110 13 күн бұрын
fully focused introduction to typescript Much appreciated Mosh
@mahdighiasi668
@mahdighiasi668 Жыл бұрын
You are the best teacher mosh. Waiting for Golang course 😉
@danielclough86
@danielclough86 7 ай бұрын
Great Video. If I had feedback Id say that the type alias example seems more suited to an interface, and interfaces were not covered.
@taj-ulislam6902
@taj-ulislam6902 11 ай бұрын
Brilliant! Very well done. Thanks Mosh
@ishaq79
@ishaq79 Жыл бұрын
All what i can say is Jazak'Allah Khair Sir!
@jaym6655
@jaym6655 Жыл бұрын
Hello Mosh, great content, I have a quick question for you, I want to buy your course and learn JavaScript and SQL, do you recommend those two if you want a job in QA Automation? I have been watching Postman API videos as well. Thank you for your time.
@nagendraprasadch
@nagendraprasadch 3 ай бұрын
No one teaches like you. You are legend
@JohnnyBellew
@JohnnyBellew Ай бұрын
"tsc ; node dist/index.js" is how we run the two commands in windows vs code terminal - just thought I'd share that :)
@welcomeblessingssayi10
@welcomeblessingssayi10 Жыл бұрын
The wait is finally over. We love amazing work you are doing Mosh❤️❤️❤️
@ianakotey
@ianakotey Жыл бұрын
Yup yup. Rust next!
@developsdaniel
@developsdaniel Жыл бұрын
Patient teaching wins the race! Thanks!!
@its_Akhtar
@its_Akhtar 8 ай бұрын
He is a Piece of GOLD So, Keep Shining 🌞
@megskyler2680
@megskyler2680 Жыл бұрын
Thank you my man. Following you courses since ReactJS.
@programmingwithmosh
@programmingwithmosh Жыл бұрын
Great to hear!
@CustAndCode
@CustAndCode Жыл бұрын
A really good tutorial! 🤗😀 your videos are really good! 👍
@ekek7
@ekek7 Ай бұрын
Thanks for a good into to TS. Very clear and concise instructions! Please keep making more vids
@RaulNussbaum
@RaulNussbaum 8 ай бұрын
Excellent introductory video, 10 out of 10!
@7orcas
@7orcas Жыл бұрын
Thanks heaps mate, you are very good at what you do
@taenahammed2196
@taenahammed2196 Жыл бұрын
I always love to learn from you.
@danielidonchangeambecauseo7889
@danielidonchangeambecauseo7889 Жыл бұрын
What course made you fell in love with how he teaches ?? Mine : He made me to understand python after 4 years of me being introduced to Programing.
@walid-hamdi
@walid-hamdi Жыл бұрын
You are amazing of explaining programming
@mahaghaly5611
@mahaghaly5611 Жыл бұрын
Thank you mosh for your efforts
JavaScript Tutorial for Beginners: Learn JavaScript in 1 Hour
48:17
Programming with Mosh
Рет қаралды 12 МЛН
TypeScript in React - COMPLETE Tutorial (Crash Course)
53:21
ByteGrad
Рет қаралды 174 М.
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100million
00:24
Celine Dept
Рет қаралды 157 МЛН
Парковка Пошла Не По Плану 😨
00:12
Глеб Рандалайнен
Рет қаралды 14 МЛН
MySQL Tutorial for Beginners [Full Course]
3:10:19
Programming with Mosh
Рет қаралды 11 МЛН
Learn TypeScript Generics In 13 Minutes
12:52
Web Dev Simplified
Рет қаралды 192 М.
Is Coding Still Worth Learning in 2024?
9:33
Programming with Mosh
Рет қаралды 136 М.
React JS - React Tutorial for Beginners
2:25:27
Programming with Mosh
Рет қаралды 6 МЛН
TypeScript Origins: The Documentary
1:21:36
OfferZen Origins
Рет қаралды 259 М.
Angular Tutorial for Beginners: Learn Angular & TypeScript
2:02:42
Programming with Mosh
Рет қаралды 4,3 МЛН
Next js Tutorial for Beginners | Nextjs 13 (App Router) with TypeScript
1:02:55
Programming with Mosh
Рет қаралды 475 М.
React Tutorial for Beginners
1:20:04
Programming with Mosh
Рет қаралды 2,4 МЛН