TypeScript - The Basics

Поделиться
HTML-код
  • Опубликовано: 4 июн 2024
  • TypeScript has forever altered the lives of JavaScript developers. Learn why TS is so awesome and the basic concepts required to be successful using it angularfirebase.com/typescrip...
    Deep Dive github.com/basarat/typescript...
    TypeScript Docs www.typescriptlang.org/
  • НаукаНаука

Комментарии • 840

  • @JonSmoley
    @JonSmoley 5 лет назад +2388

    these videos are *money*. Perfectly spoken english at a confident pace with easy-to-understand concepts is such a rarity to find--easiest sub of my life! Love the framework-agnostic videos!

    • @Fireship
      @Fireship  5 лет назад +108

      Thank you Jon!

    • @TFBCountryBoy
      @TFBCountryBoy 4 года назад +3

      @@classact9144 Why so aggressive?

    • @miltonlaxer
      @miltonlaxer 4 года назад +58

      There is nothing on RUclips (for devs) that can even touch the quality of this channel.

    • @antihuman007
      @antihuman007 4 года назад +4

      +1 this

    • @sushydev
      @sushydev 4 года назад +10

      I dont usually comment on youtube but i have to say, ur 101% right

  • @DerSpudi
    @DerSpudi 5 лет назад +761

    Wow, you just absolute sold me on TypeScript. I come from a Java background, and this is all I ever missed in plain JavaScript!

    • @algj
      @algj 4 года назад +49

      I was missing Java because of how strongly typed it was. I was afraid of learning typescript because I thought it's hard, but this man teached it in couple of minutes! What a legend.
      Edit: corrected one word

    • @bajojohn
      @bajojohn 3 года назад +59

      I was thinking, “so this turns JavaScript into a real programming language. Cool.”

    • @mohammedaliagha7520
      @mohammedaliagha7520 3 года назад +13

      @ChoppedBlade but... Node can use typescript? And node only runs on the backend? What are you even saying?

    • @mohammedaliagha7520
      @mohammedaliagha7520 3 года назад +19

      @ChoppedBlade typescript compiles down to JavaScript. It can compile down to browser compatible js that uses the dom, or Node.js Javascript that uses node apis like fs, http, etc. That doesn't mean it's the same as nodejs

    • @marcocaniglia3061
      @marcocaniglia3061 3 года назад

      same

  • @sete794
    @sete794 2 года назад +296

    For future reference:
    1:43 Getting started
    3:00 tsconfig.json
    4:30 Third party libraries
    5:09 Type annotations
    6:38 Custom types
    8:12 Types in functions
    9:22 Arrays
    10:32 Generics

    • @logs
      @logs Год назад +2

      U a real bro

    • @skaffen
      @skaffen Год назад +4

      As someone from the future, thank you

    • @1vEverybody
      @1vEverybody 9 месяцев назад +1

      As someone from further in the future, thank u

    • @nullbeyondo
      @nullbeyondo 8 месяцев назад

      As someone from even more future, this became useless as the video was updated with the Chapters feature lol.

    • @sete794
      @sete794 8 месяцев назад +1

      @@nullbeyondo as someone from the present I'm glad this was useful for some time

  • @ikezedev
    @ikezedev 5 лет назад +717

    Object oriented /functional programming in TS please.... I love this one 😍

  • @morningstar-1112
    @morningstar-1112 4 года назад +25

    You are such a good teacher for those who really want to be a good coder, I love your videos thank you so much for this.

  • @BrianDeSousa
    @BrianDeSousa 5 лет назад +12

    I have been using Typescript for a bit but always learn something new when watching your videos. Today it was adding a key property to an interface to allow classes implementing that interface to include additional properties. Great video!

  • @Methodician
    @Methodician 5 лет назад +250

    Fantastic! Please do object oriented vs functional. I've been using TypeScript for years and I learned a few things... Your videos are consistently great!

    • @newbienate
      @newbienate Год назад +2

      Where is it ? Is that oop vs functional out ?

    • @jamesscarr3372
      @jamesscarr3372 Год назад

      ruclips.net/video/fsVL_xrYO0w/видео.html

  • @alexcubed4270
    @alexcubed4270 5 лет назад +152

    This video was incredibly helpful! I have known about TypeScript for a while but never really understood what its use was over plain JavaScript. Now I'll probably start using it more than JavaScript.

    • @Fireship
      @Fireship  5 лет назад +30

      You will never look back

    • @arcticspacefox864
      @arcticspacefox864 5 лет назад

      @@Fireship its so true

    • @Fireship
      @Fireship  5 лет назад +5

      @Dark Magician I almost mentioned strict mode but it just didn't quite fit with the flow of the video

    • @aitchd2229
      @aitchd2229 5 лет назад +1

      @@Fireship you should have :-(, but still, amazing vidéo... thank you! :-D

    • @nidavelliir
      @nidavelliir 5 лет назад

      Yeah, I can't go back to vanilla JS now

  • @JMRolf1
    @JMRolf1 4 года назад +2

    Been using it for like 3 years now. Loved your overview. Will share this with some of the junior devs on my teams. Thanks!

  • @aidThompsin
    @aidThompsin 3 года назад +6

    Feeling this. I think it's the first clearly communicated TS tutorial that hasn't left me banging my head against the desk.

  • @aspected
    @aspected 4 года назад +2

    This video was incredible. TS looked so complicated but I UNDERSTAND IT NOW. Ten minutes well spent. Thank you!

  • @HdeHidratado
    @HdeHidratado 4 года назад +3

    This video presented me to Typescript. After sometime learning it, I now have a full time job in development. Thank you very much. This and many other of your videos helped me so much to get were I am today.

  • @Archnemesis88
    @Archnemesis88 2 года назад +6

    As I become a better programmer, your videos have become some of my favourites. You give a nice birds eye view that makes diving into documentation way easier!!!

  • @DEVDerr
    @DEVDerr 5 лет назад +324

    Lol... Finally now there is a video with most practical use cases with TypeScript functionality and best shared experience with this technology ive seen so far. And its not boring, even if i knew this stuff already. Like button clicked, good job buddy! Keep going.
    P. S I'm definitely waiting for OOP. That's going to be amazing.

    • @Fireship
      @Fireship  5 лет назад +9

      Glad to hear that!

  • @naveedalirehmani4135
    @naveedalirehmani4135 2 года назад

    These videos are Gold,
    1. includes almost everything you need to know for day to day tasks.
    2. to the point without wasting any time.
    3. English is very clear to understand and words are chosen very wisely.
    4. easily and useful example so you can understand code fast and better
    THANK YOU VERY MUCH

  • @mubafaw
    @mubafaw 2 года назад +4

    Best concise beginners intro tutorial ever on typescript, with best practice! 😊 I like your no BS approach, straight to the
    point. 😊 You're blessed with the gift of teaching! Keep going 😊 We'll applaud you. 😊

  • @kennethdev
    @kennethdev 3 года назад +2

    Wow, thank you for this awesome intro to TypeScript! I have been working at an internship this summer, and yesterday I ran into some TypeScript. I had a background in JavaScript already, but I searched for a crash course just to be safe. This came up first, and in twelve minutes, I got a good handle!

  • @adamg9834
    @adamg9834 4 года назад +19

    I have so many regrets as a junior developer. I contributed a bunch of angular 7 code at a startup I work at. I had no web development experience, but regardless I needed to finish my tasks as they're assigned, so I mostly focused my efforts on learning the Angular framework (which I absolutely love tbh) and the bare minimum JS. God the web project has gotten so big now, and I really wish I fully embraced the typescript... Future junior web devs out there, heed my warning: don't neglect TS! I feel like I'm stuck conforming to bad habits for the sake of consistency.

    • @yash1152
      @yash1152 6 месяцев назад

      thanks a lot for ur words. i am just starting with web-dev; & as i already over complicate _alll_ the things a lot (just for this correctness sake) i was thinking of giving myself some slack for choice of *script.
      but thanks. ur words have steered me in right direction in this area too.

  • @NewbTube69
    @NewbTube69 5 лет назад +1

    You absolutely crushed it in this video. You wasted no time explaining and covered quite a bit in the 12 minutes. Subscribed!

  • @_romeopeter
    @_romeopeter 2 года назад +5

    I didn't want to learn Typescript but after applying for jobs and seeing it as a requirement, I had to check it out and I've become interested in it. It is super powerful and the learning is quite easy. The data typing is quite similar to Python’s code hinting and annotation. Glad I saw this vid.

  • @zoecarlibur
    @zoecarlibur 5 лет назад +3

    I fell in love with TypeScript almost as soon as I heard about it. An unexpected benefit of TypeScript is you can now learn C# very easily if you want to. The syntax are very similar.

  • @yashjain611
    @yashjain611 5 лет назад +49

    Its just AWESOME. Instead of 1-2 hours basics, you have covered most of typescript in just 12 minutes. Beginners should also go through this video so that they can jump off to other concepts in very less time. +1 for this short and sweet but effective video over Typescript. I have watched your other videos also , you are AWESOME man. Straight to the point and you have not more that 15-20 minute videos. Great job dude. Keep it up. Liked it.

  • @badwolf9090
    @badwolf9090 5 лет назад +1

    I've been busy with C# and JS all day today. I'm basically burnt out and then RUclips recommenced your video and I enjoyed every single second. TS has been something I've had my eye for a while and this video just made me want to go out and give it a go.

  • @zaaaff
    @zaaaff 5 лет назад +4

    One of the best channels! I really like the way you explain, edit the videos and keep your screen clean. Please, keep that quality. I was planning to learn React, but since your videos are so cool I'm now thinking to learn angular. Just because wanna see more videos on this channel.

  • @jimihenrik11
    @jimihenrik11 3 года назад

    This video has the perfect pace and amount of information for people who know js and want to get into ts. awesome!

  • @heinrichwoogue8887
    @heinrichwoogue8887 5 лет назад +3

    The reason I love angular is because of Typescipt.
    Great intro to Typescript. Keep the videos coming

  • @cazino4
    @cazino4 2 года назад +6

    Hey, great tutorial. Been using the ES6 version of JS in both frontend browser-based apps and backend NodeJS apps for some time now and whilst its marked improvement over prior versions (owning to the first class support for classes, objects and inheritance, etc) one thing that its missing, in my view, as an engineer used to working with fully fledged backend languages (I,e Java,Go,etc) , is Strong Typing. String Typing is useful for many of the reasons you cited in your video, principal among them: the ability to detect type mismatch (and related) errors at compile time rather than at runtime, which in and of it self may go some way to preventing the occurrence errors that can be incredibly difficult to reproduce and diagnose.
    I also love the fact that Typescript is essentially backwards compatible with JS, on account of it being a super set of the language; I may actually use Typescript on my next project and that is, in no small part, due to the clarity and intuitive exposition of this tutorial. Thank you!

  • @yuudaemones2624
    @yuudaemones2624 4 года назад

    This channel is low-key the best web dev value watch on youtube.

  • @jonasfelix7700
    @jonasfelix7700 5 лет назад +1

    Rocking it again! Absolutely smooth and most efficient intro to typescript.

  • @KaushikRao
    @KaushikRao 5 лет назад +4

    Thanks Jeff for an awesome content as usual. Love your tutorials and the way you explain. This was more useful.

  • @alexcubed4270
    @alexcubed4270 5 лет назад +2

    I would really love to see more of these videos, as I'm very new to TypeScript .

  • @CharlieKiloSierra8893
    @CharlieKiloSierra8893 5 лет назад

    Finally i really understand what is the use of and the [varname?] thank you for making this video. Please do the oop and functional programming for typescript

  • @seannorton2839
    @seannorton2839 5 лет назад

    Awesome video, this year I started working with TS and have grown to love it. 🤘🏻

  • @QQ-gn7tc
    @QQ-gn7tc 3 года назад

    This Channel really really deserve more. This video is one of many successful videos on this channel to deliver big topic in few minutes. All respect.

  • @janardhancv1127
    @janardhancv1127 5 лет назад

    I like your videos which forces me to focus more as it is in the perfect speed mode. Looking forward for the TypeScript Deep dives...

  • @jagzviruz
    @jagzviruz 5 лет назад

    This is the first time, I want to try working with Typescript. Great delivery.

  • @sakariyam1610
    @sakariyam1610 3 года назад

    Had a interview question about what was the difference between typescript and JavaScript and this video saved my life.

  • @kamboj65
    @kamboj65 Год назад +1

    I'm newbie of Typescript and this help me a lot to understand the syntax and how is different from Javascript.

  • @kalusharma2201
    @kalusharma2201 5 лет назад +2

    Honestly best tutorials on RUclips. I wish you made videos for advanced Javascript stuff not focused just around angular ;)

  • @MrPandaGuo
    @MrPandaGuo 2 года назад

    sooo smoothly edited video, I love these informative basic videos.

  • @GibbzM8
    @GibbzM8 5 лет назад +1

    Great quick start guide! Exactly what I was looking for rather than a ~1 hour snoozefest 😴😴

  • @michiel97531
    @michiel97531 Год назад

    I have been struggling for years in javascript and today i discovered this. I litterally looked up i hate weak typed js and found this. I'm so happy

  • @bencroacademy
    @bencroacademy 3 года назад

    Love your articulated vids that get me started with new concepts n frameworks . Time to do some TS on my projects ☺️

  • @aaenndeeerreeess
    @aaenndeeerreeess 2 года назад

    Just the right amount of information in a good pace to give the understanding of basics.

  • @darwin9111
    @darwin9111 4 года назад +7

    This was an amazing introduction to TypeScript. Thank you!

  • @nechitagabrieldotro
    @nechitagabrieldotro 5 лет назад

    Another great video from Jeff. This video is great as a soft introduction to TypeScript, and why is it very useful. And for the next TS video, OOP in TypeScript will be "sequel" to this video.

  • @djpunisha29
    @djpunisha29 5 лет назад +1

    amazing ability to explain, clear, fast, concise, you should be a university professor :)

  • @guitaristofspeed
    @guitaristofspeed 5 лет назад +1

    Learnt a lot from this, thanks. Would definitely like to see some more TypeScript videos!

  • @andythedishwasher1117
    @andythedishwasher1117 2 года назад +1

    This was excellent. I would really love to see the object oriented/ functional programming in TS episode. That's been an object of curiosity for me lately.

  • @Salomao-Rodrigues
    @Salomao-Rodrigues 5 лет назад

    Thanks for the great video. Love the format. A video about decorators next would be awesome.

  • @ryzizub
    @ryzizub 5 лет назад +2

    Helpflul as always! Thanks Jeff for your content. Typescript is life, typescript is love! :)

  • @tsvetanpetrov5971
    @tsvetanpetrov5971 4 года назад

    I'm just thinking what should be my next step as a software engineer and I was thinking about TypeScript. Your tutorial really helped me feel that this is the direction i would like to go!

  • @UsefulProgrammer
    @UsefulProgrammer 2 года назад

    This video rocks. Thanks for putting this out there. I'd like to see a video on decorators in TypeScript. Also, a video on NestJS would be awesome.

  • @dandandrorivolleyball
    @dandandrorivolleyball 2 года назад +2

    It's been 3 years now since the video was released, and we NEED an ADVANCED typescript crash course

  • @logusgraphics
    @logusgraphics 4 года назад

    One of the greatest advantages of people coming from the Angular 2 framework. To know TS out of the box. I love to use it with React and Node JS services and share models of objects back and forth in a mono repo.

  • @shalompope
    @shalompope 5 лет назад +2

    This was very well done looking forward to object oriented vs functional programming

  • @geoffmahugu8983
    @geoffmahugu8983 5 лет назад

    Really good insight on Generics, finally understand how they work.

  • @zoranristov7349
    @zoranristov7349 4 года назад +1

    Amazing explanation, I subscribed right away. I hope to learn as much as I possibly can from your videos

  • @chandherbb05
    @chandherbb05 5 лет назад

    This video was perfectly done! Loved it. Will try to use typescript in my new project

  • @Kevin192291
    @Kevin192291 5 лет назад +3

    I would love to see some advanced typescript (also love the T-shirt)

  • @wepranaga
    @wepranaga 4 года назад +1

    really good video. it doesn't spam you with opinions and perspective. but actually show you stuff. great

  • @KennyOscar
    @KennyOscar 4 года назад

    amazing video. Compact and very informational for anyone wanting to know what using Typescript is like

  • @thomasmundt8256
    @thomasmundt8256 4 года назад

    An excellent wrap-up of TS, short, sweet and up to the point. :-D

  • @arunap4086
    @arunap4086 5 лет назад

    Really loved the video, It would be really helpful if you make an entire series on typescript

  • @elmotareal
    @elmotareal 5 лет назад

    First time i watch one of your videos and feel like I'm ahead! And i have 22 years of JavaScript experience, feels good :)

  • @atmanirbharladka4467
    @atmanirbharladka4467 4 года назад +80

    My man taught me hours of typescript in 12mins.

  • @narendrasinghrathore1012
    @narendrasinghrathore1012 5 лет назад

    As i said earlier, quality content is what you deliver always in your videos.

  • @micalevisk
    @micalevisk 5 лет назад +4

    I'm love with TS

  • @DennisPing
    @DennisPing 2 года назад

    Great intro video. Excellent examples that show the cause & effect. I could already infer the syntax mid-way thru the video.

  • @ieatnoodls
    @ieatnoodls Год назад

    Perfect thank you 👌 These videos are great for afternoons when you don't feel like reading through 500 pages of documentation but just want to get your hands dirty.

  • @aaa15119
    @aaa15119 2 года назад

    thanks so much for every single tutorial. I was smashing my head on the wall day and night and couldn't sleep well because I did not fix the error! thanks so much

  • @cll1out
    @cll1out 4 года назад +2

    Wow. I came here just to get an idea of differences now I actually want to research it and learn it.

  • @apachurrooriginal
    @apachurrooriginal 3 года назад +1

    Wow, Those 12 mins are the best 12 mins invested in my life !
    I felt like I am on The Matrix. :-P
    Learn TS in 12 mins :-D
    Excellent video and very well explained the most important concepts.

  • @lubutostimeline1304
    @lubutostimeline1304 2 года назад

    Leant typescript in less 12 minutes, now that's how a tutorial should be done. Keep it up good work. A like and a sub from me

  • @lexsoft3969
    @lexsoft3969 3 года назад +1

    Like you, my main reason for getting started to learn TS is Angular. It's time to learn both, because I don't want to only know and use React.
    I was interested in trying NestJs for the backend too, but lacking of TS skill prevented me. I read that Deno supports TS too.

  • @Orion3000k
    @Orion3000k 2 года назад

    Incredible video. I definitely am starting to learn Typescript these days.

  • @dionfullysus
    @dionfullysus 3 года назад

    Good video, much better than majority of the stuff I find on RUclips for referencing.

  • @GoddamnAxl
    @GoddamnAxl 5 лет назад +4

    This deserves more views

  • @maamarziane6663
    @maamarziane6663 5 лет назад

    First time looking into TS Thank you for this

  • @canigetanootnoot
    @canigetanootnoot 5 лет назад +1

    Love the channel, definitely made it into my subscriptions

  • @furukoo12
    @furukoo12 4 года назад +1

    This channel is on fire man. Thanks for making these videos :)

  • @gabrielgutierrez6282
    @gabrielgutierrez6282 5 лет назад

    Thanks for the video. I would like to see more advanced content about typescript.

  • @OwenMecham
    @OwenMecham 5 лет назад

    A decorators follow up video would be great! Nice work again.

  • @ilgamgabdullin
    @ilgamgabdullin 5 лет назад

    Best !
    As always!
    Thanks a lot
    It would be great to see about OOP and FP in ts

  • @GuRuGeorge03
    @GuRuGeorge03 3 года назад

    very similar to how php handles typing. love it. I didn't know that typescript was just extended javascript. that's actually amazing

  • @BOLL7708
    @BOLL7708 4 года назад +1

    Thank you for this, finally got into TypeScript for all my JS, and WHOA, fixing bugs BEFORE running the page, lovely, now it's not too far from what I'm used to with other languages.
    Have not managed to get the watch task to run automatically yet, seems it should be working in VS Code but my config does nothing. Oh well, it's still golden, just that I keep forgetting to run said task 😅

  • @beratsulimani9823
    @beratsulimani9823 5 лет назад +4

    I really love Typescript. Thank you Jeff for amazing explanation.

  • @Xizor231
    @Xizor231 5 лет назад

    Thanks for the tips! I didn't know about the tuples in typescript

  • @chema9364
    @chema9364 5 лет назад +3

    Great video! Estoy empezando mi carrera como programador web y este video es perfecto para saber lo básico. Mil gracias por compartir.

    • @MiSt3300
      @MiSt3300 Год назад

      how is your career going on 3 years later? Are you a programmer now?

    • @chema9364
      @chema9364 Год назад

      @@MiSt3300 sí, soy front end developer hace 4 años, trabajo con Angular, y la verdad que muy bien estoy muy contento. Tu q tal?

  • @lutfarrahman3529
    @lutfarrahman3529 5 лет назад +1

    Good video. Love this for making simple understanding in a short time

  • @Rmharnisch
    @Rmharnisch 5 лет назад +1

    Please do object oriented vs functional. Your videos are a great learning reference for me. Thanks!

  • @nonplan
    @nonplan 4 года назад

    It's cool, i really like your videos with perfect voice and awesome animations. You should continue make content like that.

  • @christianremboldt1557
    @christianremboldt1557 Год назад

    This video helped a lot. Like you, I didn't even want to start learning TypeScript, but I was kinda curious what it's all about.
    I'll now use TypeScript as well xD

  • @yuehernkang
    @yuehernkang 5 лет назад

    Thanks for all your tutorials!

  • @vinaykashyap6363
    @vinaykashyap6363 5 лет назад

    Thank you for bringing great tutorials

  • @chrisrockerstpauli
    @chrisrockerstpauli 5 лет назад +1

    Very nice video! Please do OOP vs functional next. Thank you for another great video!

  • @pavangrandhi
    @pavangrandhi Месяц назад

    Very easily understandable language, Thank you.

  • @arianvc8239
    @arianvc8239 4 года назад

    Great video! Please continue the TS series.

  • @LalienX
    @LalienX 2 года назад

    Wow this is simpler than I thought. Great tutorial.

  • @__mayank
    @__mayank 5 лет назад +1

    This video was incredibly helpful, and I'd be interested in an OOP vs FP video as well.
    Also wanted to know if you are going to do any videos on Flutter.