Complete Typescript in under 5 hours

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 201

  • @HiteshCodeLab
    @HiteshCodeLab  Před rokem +51

    Took a lot of time to write these. Please subscribe.
    Github Repo:
    github.com/hiteshchoudhary/typescript-youtube-22
    00:00:00 - 00:06:51 - Why to learn typescript
    00:06:51 - 00:15:08 - Typescript is not what you think
    00:15:08 - 00:27:16 - How to install typescript
    00:27:16 - 00:39:04 - Your first intro to typescript docs
    00:39:04 - 00:46:35 - Number, boolean and type inference
    00:39:04 - 00:46:35 - Number, boolean and type inference
    00:46:35 - 00:51:13 - Don't use ANY in typescript
    00:51:13 - 01:02:38 - Do you really know functions in typescript
    01:02:38 - 01:15:21 - A better way to write function in typescript
    01:15:21 - 01:24:57 - Bad behaviour of objects in typescript
    01:24:57 - 01:32:11 - Type Aliases in Typescript
    01:32:11 - 01:41:56 - READONLY and optional in typescript
    01:41:56 - 01:49:46 - Array in Typescript
    01:49:46 - 02:04:29 - Union Types in TS
    02:04:29 - 02:14:16 - Tuples in typescript
    02:14:16 - 02:23:46 - Enums in typescript
    02:23:46 - 02:33:35 - interface in typescript
    02:33:35 - 02:38:51 - Interface vs Type in typescript
    02:38:51 - 02:53:27 - How to setup Typescript for real projects
    02:53:27 - 03:01:49 - Classes in typescript
    03:01:49 - 03:07:55 - Private Public in Typescript
    03:07:55 - 03:15:08 - Getters and Setters in typescript
    03:15:08 - 03:19:17 - Protected in Typescript
    03:19:17 - 03:25:48 - Why Interface is important in typescript
    03:25:48 - 03:35:19 - Abstract class in Typescript
    03:35:19 - 03:47:41 - Generics in Typescript
    03:47:41 - 03:55:50 - Generics in Array and Arrow functions in Typescript
    03:55:50 - 04:06:59 - Generic Classes in Typescript
    04:06:59 - 04:16:47 - Type Narrowing in typescript
    04:16:47 - 04:22:00 - The in operator narrowing
    04:22:00 - 04:31:18 - Instanceof and Type Predicates
    04:31:18 - 04:42:37 - Discriminated Union and Exhaustiveness Checking with never
    04:42:37 - 04:46:07 - Typescript End

    • @mayurpatil5872
      @mayurpatil5872 Před rokem +1

      Make one more 5+ hours video on projects using typescript 💯

    • @gayergawana7393
      @gayergawana7393 Před rokem +1

      Hitesh, you really posted a good course here so far👍👍

    • @qaghan.
      @qaghan. Před 7 měsíci

      Thank you

  • @kmahendra6691
    @kmahendra6691 Před rokem +13

    if you are from odisha hit likes
    00:00:00 - 00:06:51 - Why to learn typescript
    00:06:51 - 00:15:08 - Typescript is not what you think
    00:15:08 - 00:27:16 - How to install typescript
    00:27:16 - 00:39:04 - Your first intro to typescript docs
    00:39:04 - 00:46:35 - Number, boolean and type inference
    00:39:04 - 00:46:35 - Number, boolean and type inference
    00:46:35 - 00:51:13 - Don't use ANY in typescript
    00:51:13 - 01:02:38 - Do you really know functions in typescript
    01:02:38 - 01:15:21 - A better way to write function in typescript
    01:15:21 - 01:24:57 - Bad behaviour of objects in typescript
    01:24:57 - 01:32:11 - Type Aliases in Typescript
    01:32:11 - 01:41:56 - READONLY and optional in typescript
    01:41:56 - 01:49:46 - Array in Typescript
    01:49:46 - 02:04:29 - Union Types in TS
    02:04:29 - 02:14:16 - Tuples in typescript
    02:14:16 - 02:23:46 - Enums in typescript
    02:23:46 - 02:33:35 - interface in typescript
    02:33:35 - 02:38:51 - Interface vs Type in typescript
    02:38:51 - 02:53:27 - How to setup Typescript for real projects
    02:53:27 - 03:01:49 - Classes in typescript
    03:01:49 - 03:07:55 - Private Public in Typescript
    03:07:55 - 03:15:08 - Getters and Setters in typescript
    03:15:08 - 03:19:17 - Protected in Typescript
    03:19:17 - 03:25:48 - Why Interface is important in typescript
    03:25:48 - 03:35:19 - Abstract class in Typescript
    03:35:19 - 03:47:41 - Generics in Typescript
    03:47:41 - 03:55:50 - Generics in Array and Arrow functions in Typescript
    03:55:50 - 04:06:59 - Generic Classes in Typescript
    04:06:59 - 04:16:47 - Type Narrowing in typescript
    04:16:47 - 04:22:00 - The in operator narrowing
    04:22:00 - 04:31:18 - Instanceof and Type Predicates
    04:31:18 - 04:42:37 - Discriminated Union and Exhaustiveness Checking with never
    04:42:37 - 04:46:07 - Typescript End

    • @HiteshCodeLab
      @HiteshCodeLab  Před rokem +6

      Thanks for this. Can you please help same for cpp video?

  • @cristiandumitriu1245
    @cristiandumitriu1245 Před měsícem +2

    I need to say that after watching the entire almost 5 hours tutorial it is one of the best and I can't wait tomorrow to start writing and applying everything I have learned. Thank you very much.

  • @awesome-kartikey
    @awesome-kartikey Před 21 dnem +2

    1:36:17
    In TypeScript, if an array is declared as readonly, you cannot use the push method to add new elements to it. This is because the readonly modifier prevents any modifications to the array.
    Instead, you can use the spread operator (...) to create a new array with the additional elements, like this:
    TypeScript
    let arr: readonly number[] = [1, 2, 3];
    arr = [...arr, 4, 5]; // creates a new array [1, 2, 3, 4, 5]
    Note that this creates a new array, rather than modifying the original one.

  • @balajiprabhu008
    @balajiprabhu008 Před 16 dny

    I usually don’t finish long tutorials, but this is the first video I’ve ever completed-and I did it in just two days. You made the content so interesting and easy to follow. Thanks for all the effort you put into it! 💙

  • @nikhilupadhyay4191
    @nikhilupadhyay4191 Před rokem +6

    Yes, we can push inside the _id if it is an array because the array is concerned with its reference and not the values present inside it here even if you push some values inside it the reference will remain the same .

  • @pratikbidve8316
    @pratikbidve8316 Před rokem +3

    The best coding teacher on Internet! Thanks Hitesh Sir! Great tutorial! Great Human with Great Attitude.

    • @pratikbidve8316
      @pratikbidve8316 Před rokem +1

      It's so annoying for those whole subscribed already!

  • @pryansh_
    @pryansh_ Před 5 měsíci +2

    2:14:40 , its enumerations and it means calling/naming one by one and this is actually what happens when we define an enum, we simply name the props we want this new custom data_type (for say) to have

  • @ujjawalchatterjee7586
    @ujjawalchatterjee7586 Před rokem +4

    Completed the whole video. It took me 3 days to complete this but it was worth it. Thanks for posting this.

    • @HiteshCodeLab
      @HiteshCodeLab  Před rokem +14

      Happy to help,
      Took me months to create this playlist

    • @ujjawalchatterjee7586
      @ujjawalchatterjee7586 Před rokem +3

      @@HiteshCodeLab These videos get less views but are so important. People get carried away with 50LPA clickbait videos.

  • @anandshinde0358
    @anandshinde0358 Před měsícem +1

    01:36:35 Q] if id would be array. can we push values to array in case of READONLY?
    ans: yes we push value in array

  • @adityasharmaa15
    @adityasharmaa15 Před 4 měsíci +1

    My man Hitesh, thank you for taking out time for making this course. This is timeless.

  • @faisalahmadi3470
    @faisalahmadi3470 Před rokem +1

    I know many programming languages, more than 10, almost every popular language.
    I would just say that Type is very very important. My favorite language is Java and it has a wide range of type declaration. Now i finally love javascript with Typescript. Without Typescript will javascript very buggy and will waste too much time to find a small error. I think, typescript is a must because it really helps.

  • @nikakondra5321
    @nikakondra5321 Před rokem +3

    Thank you so much for this course! Tried other ones but this was the most interesting and enjoyable so far!

  • @SumanPokhrel0
    @SumanPokhrel0 Před rokem +1

    Took 10+ Days but finished indeed. Thank you sir for this amazing course.

  • @user-su7eh6yr7k
    @user-su7eh6yr7k Před 8 měsíci +1

    Finally, I completed this entire series. thank you so much for a great explanation 😍👍

  • @ganeshkolase7203
    @ganeshkolase7203 Před rokem +7

    Hi Hitesh,
    You explain these concepts so well man ❤, I really want to learn that too(communication and soft skills).
    Can you please make a course on that too?🙂

  • @ranjanrnj6864
    @ranjanrnj6864 Před rokem +1

    Hi Hitesh, Thank you for giving this great detailed course. I not only found this course useful, the takeaway was how to read the document and make hands-on all along the way 😇👍

  • @edwinroman30
    @edwinroman30 Před rokem +2

    Thank for sharing this fundational content Hitesh, I hope you get the 1M subcribers in this year and wish u all my best dear teacher!

  • @lovelylatin8357
    @lovelylatin8357 Před rokem +2

    Please make a complete video aswell for react testing like this one, i loved to follow a complete series like this, thanks hitesh 👍

  • @awesome-kartikey
    @awesome-kartikey Před 21 dnem

    2:23:40
    The full form of enum in TypeScript is "Enumerated Type".
    Here's an example of using an enum in TypeScript:
    TypeScript
    // Define an enum
    enum Day {
    Sunday,
    Monday,
    Tuesday,
    Wednesday,
    Thursday,
    Friday,
    Saturday
    }
    // Use the enum
    let today: Day = Day.Sunday;
    console.log(today); // Output: 0
    // Use the enum in a switch statement
    switch (today) {
    case Day.Sunday:
    console.log('Today is Sunday');
    break;
    case Day.Monday:
    console.log('Today is Monday');
    break;
    default:
    console.log('Today is another day');
    }
    // Use the enum with a string value
    enum Color {
    Red = 'red',
    Green = 'green',
    Blue = 'blue'
    }
    let favoriteColor: Color = Color.Green;
    console.log(favoriteColor); // Output: green
    In this example, we define two enums: Day and Color. The Day enum has numeric values, while the Color enum has string values. We then use the enums to declare variables, log messages, and handle different cases in a switch statement.
    Note that enums can also be used as a type annotation to restrict the type of a variable or property:
    TypeScript
    let day: Day = Day.Sunday;
    In this case, the day variable can only be assigned a value from the Day enum.

  • @sundeeep
    @sundeeep Před rokem +4

    Hi Hitesh, We have watched your TYPESCRIPT series. And, It will be very nice, If you will have showed us "How we use TYPESCRIPT in real-world APPLICATIONS and frameworks like REACT, and server-side as well like when writing the EXPRESS js, SO that, we can do the projects using TYPESCRIPT by replacing JAVASCRIPT. So, please share with us the small chunks of projects in REACT AND EXPRESS in your content. Thank YOU!

  • @_YuvrajChauhan
    @_YuvrajChauhan Před 4 měsíci

    Types: (1) String (2) Number (3) Boolean (4) Array (5) Any (6) Object (7) Union (8) Literal (9) null (10) undefined
    Thanks :)

  • @_hugo_cruz
    @_hugo_cruz Před rokem +2

    Excellent video bro. I loved it and it helped me to eliminate certain doubts. Thank you very much. When do you do a complete and practical React project with typescript?

  • @rushlive
    @rushlive Před 5 měsíci +1

    coming from java, kotlin and dart, it is easier to directly learn Typescript first (without learning javascript). It is kinda like Kotlin syntax which is superb.

  • @surajagrawal7980
    @surajagrawal7980 Před 6 měsíci

    38:43 - typescript types-> string, boolean, number, array, any, object, union, literal, null, undefined, enums

  • @guddubhaiyathikanamirzapur4079

    Your teaching is of a different level... I love the way you explain things..thanks for this awesome video sir

  • @bm9code
    @bm9code Před rokem

    1:36:21 Because we are storing an address of array's first value, technically we are not changing the array address when we push or pop elements from array

  • @samiullahsaleem
    @samiullahsaleem Před rokem +1

    Thank you so much for this course! I just complete this whole Typescript Series.

  • @kunaldev5274
    @kunaldev5274 Před 11 měsíci +1

    Best Course. Thanks for giving us your valuable time

  • @mayurpatil5872
    @mayurpatil5872 Před rokem +25

    It will be great if you put timeline in description ❤️

  • @ji_02k
    @ji_02k Před 10 měsíci

    One of the best video on typescript ranked number 1 as per me. Thank You so much sir for making ease and every concept as buttery . Thank you so muchhhhhhhhh.......................

  • @user-xu1vy8ur4u
    @user-xu1vy8ur4u Před 19 dny

    Thank you Hitesh! Perfect as always.

  • @amruthavs2851
    @amruthavs2851 Před 10 měsíci

    Thank you Hitesh for great content. You are really good at teaching.
    I wish you get a million subscribers soon. Cheering your channel. Good luck.

  • @sonvir249
    @sonvir249 Před 6 měsíci

    Thank you so much for creating this course with great details. It was awesome and simple to udnerstand.

  • @chandipen
    @chandipen Před rokem +2

    Hi Hitesh sir, it was a extremely excellent tutorial and was really helpful.
    There was a minor issue at 1:58:52. As it is a function, just adding `return` resolves the error.

  • @enochauston4068
    @enochauston4068 Před rokem

    You deserve payment, yet your crash courses are knowledge source for the beginners!! CZcams Thanks.

  • @yashnirmal7432
    @yashnirmal7432 Před rokem

    2days ago I was thinking of typescript, but couldn't found a course. Now here we go

  • @_Hero_24
    @_Hero_24 Před 3 měsíci +1

    feels like i am gonna master TypeScript here only !!

  • @ilksenbozok4558
    @ilksenbozok4558 Před rokem

    Your way of explaining was very good. Thank you for this tutorial. 👏

  • @coolwithsaquibaquib
    @coolwithsaquibaquib Před rokem +1

    @1:36:24 Yes we can push value inside the read-only ids array

  • @VishalSharma-rn7mt
    @VishalSharma-rn7mt Před rokem

    This is best typescript tutorial on CZcams,
    thank you Sir.

  • @RamGamer0007
    @RamGamer0007 Před 7 měsíci

    Hnji hum idhar bhi aa Gaye to learn something new 👍👍

  • @saurabhbisht3714
    @saurabhbisht3714 Před 4 měsíci

    What about typescript utility like Partial, Required, Pick, Readonly and Omit

  • @abhishh1260
    @abhishh1260 Před 2 měsíci

    13:36 Here I almost cried thought my laptops life is done.

  • @jasonappiatumusic6955

    Hi Hitesh, thank you very much for this tutorial. The presentation was awesome and simple to understand😀

  • @YasirAli-lk7dd
    @YasirAli-lk7dd Před 6 měsíci

    Thanks you so much sir so making amazing content i have no words to your hard work keep making amzing content again thanks alot for this video alot love and respect from karachi pakistan thank you so much

  • @kavinderpanwar1434
    @kavinderpanwar1434 Před rokem

    This tutorial is helping me alot in knowing typescript

  • @abhishh1260
    @abhishh1260 Před 2 měsíci

    2:12:22 I am watching this after a year and now I can not push the new type of value in that array . It is fixed . It is saying
    Argument of type 'boolean' is not assignable to parameter of type 'string | number'.

  • @abhishekchaudhary8965
    @abhishekchaudhary8965 Před rokem +1

    Please let me know the font family you are using in vs code ? It looks good. 😊
    Great tutorial, watched upto end.

  • @rahularora1079
    @rahularora1079 Před rokem +2

    Sir did you add project in this video ? So that we can get better understanding of typescript concepts like interfaces, generics etc

  • @_sharmaji.dev_
    @_sharmaji.dev_ Před rokem +2

    timestamps or index would be great, sir🙌

  • @a28mohiteaayush19
    @a28mohiteaayush19 Před měsícem

    Thank you so much for this amazing series!

  • @cryptogita8699
    @cryptogita8699 Před 9 měsíci

    Yes , we can push elements in array if _id is an array type

  • @hendoitechnologies
    @hendoitechnologies Před měsícem

    post video about how to finetune ChatGPT Model for specific usecase with website or mobile integration to work as customer care chatbot....

  • @nurnabi3813
    @nurnabi3813 Před 10 měsíci

    I like the way you teach and speak, you are lovely.

  • @mdfaiyazrizwee1756
    @mdfaiyazrizwee1756 Před 7 měsíci

    Firstly thank u for the course. Sir at 2:12:23 newUser is following type User but you have written newUser[1] instead of newUser[0] that's why not giving an Error.

  • @MDImran-fv5ov
    @MDImran-fv5ov Před rokem

    thanks sir
    take love from Bangladesh 🇧🇩🇧🇩🇧🇩

  • @dogesh544
    @dogesh544 Před 5 měsíci +1

    Amazing video sir learnt a lot

  • @anuragchindaliya
    @anuragchindaliya Před rokem

    1:36:16
    Readonly throw error on array and tuple mutation
    function foo(arr: readonly string[]) {
    arr.slice(); // okay
    arr.push("hello!"); // error!
    }

  • @mtomking5371
    @mtomking5371 Před rokem

    thanks for this one sir
    love you from bangladesh..❤❤❤

  • @darknight2215
    @darknight2215 Před rokem

    Thanks man ..
    Yesterday thinking about it, to buy that course now it's free 😂

  • @sapak7149
    @sapak7149 Před rokem

    Thank your sir, impressive way of teaching

  • @kalush81
    @kalush81 Před rokem +1

    Hey Hitesh, I really like the way you are teaching. Glad to find you. I have one suggestion regarding 1:58. Typescirpt is yelling at you because you forgot to "return: id.toLowerCase()" TS could not correctly infer return value so it assumed it will be still "string | number" so we can not apply + operator :) You may consider to update that scene :) Greetings

  • @anilkumarmootha3738
    @anilkumarmootha3738 Před rokem

    Wonderful tutorial Hiteshji 🙏🙏🙏

  • @somnathjana5128
    @somnathjana5128 Před rokem +1

    hey @Hitesh can you Do like this with GCP. That will be very grateful.Thanks

  • @prabhanshugupta9361
    @prabhanshugupta9361 Před 3 měsíci

    while I am trying to understand the documentation of anything I thought about how they understand that, is there any approach to reading the documentation ? or we are lacking the experience.

  • @sakoherman5375
    @sakoherman5375 Před rokem

    Hitesh you are the best dude,keep it up please thank you🙏

  • @Mohit_Q
    @Mohit_Q Před 5 měsíci

    01:02:38 - 01:15:21 - A better way to write function in typescript

  • @xxyxxyyyx
    @xxyxxyyyx Před rokem

    2:50:00 i have no clue why but i dont see any console lines in the browser
    i tried different browsers and i followed every step, this is so frustrating
    the background color change worked

  • @mayurpatil5872
    @mayurpatil5872 Před rokem +2

    Waiting for this video to hit 1 million vies 💯

  • @prikshitverma3885
    @prikshitverma3885 Před 3 měsíci

    hi Hitesh, Can you please explain why you have added export{} at the end of code to remove errors from code.I did not get it

  • @MrRawat-yd9dt
    @MrRawat-yd9dt Před rokem +2

    Wow, great sir 👏👏👏👍
    but i think you forgot to put those CZcams timestamp thingy so we can refer back to a particular topic in this long video.

  • @sundeeep
    @sundeeep Před rokem +1

    In React js, How can we write TYPESCRIPT and use that in HOOKS like usState, and useEffect, Can we write Interfaces, Please cover all these topics in your future content. Thank you.

  • @kamalchoudhary6907
    @kamalchoudhary6907 Před 7 měsíci

    I would be great if you teach decorators in TS :)

  • @ebukachuqz
    @ebukachuqz Před rokem

    Please like, share and subscribe guys. Hitesh did an outstanding work in this tutorial

  • @himats7195
    @himats7195 Před rokem

    Hello ,I need to learn typescript and playwright automation. How much javascript depth is required? Thank you 🙏

  • @parthpitroda35
    @parthpitroda35 Před 5 měsíci

    I'm watching this on 4th April 2024 can i still follow along the video to learn TS?

  • @dharmadurai.m9218
    @dharmadurai.m9218 Před rokem

    Hi Hitesh
    I have one question 1:24:45 at the moment you did not mention type for that parameters in createuser function,
    you just provide the alias for parameter that's why it is not through any error. Please correct me if I am wrong.

  • @Amvflix7
    @Amvflix7 Před rokem

    So nicely explained. Thank you Sir🙏

  • @riteshpatil6104
    @riteshpatil6104 Před 2 měsíci

    You are a legend sir!!

  • @themountains1701
    @themountains1701 Před 2 měsíci

    2:14:41 Enum = Enumeration

  • @ak27129
    @ak27129 Před rokem

    1:43:22 my online TS compiler doesnt give me error for this operation, I was even able to console.log the value and got spiderman correctly, Is this some new update?

  • @ajayrabari433
    @ajayrabari433 Před rokem +1

    Thanks for the video sir.

  • @jesussheepakash9289
    @jesussheepakash9289 Před rokem

    Amazing video sir , Sir you have any Hindi channel for programming ...

  • @samiullahsaleem
    @samiullahsaleem Před rokem +1

    Yes! We can push values in read only array. This is weird. What's the solution?

  • @umairkhan5073
    @umairkhan5073 Před 3 měsíci

    Sir g ❤🙂 love from Pakistan

  • @nidatariq2385
    @nidatariq2385 Před 5 měsíci

    my variableMe.js isnt showing the code it made on its ts file .how to fix it

  • @ankushladani496
    @ankushladani496 Před rokem +1

    Thank you sir....💯♥️

  • @krish_techaadimulam2243
    @krish_techaadimulam2243 Před rokem +1

    Complete Node js series caan u do sir

  • @mohammadakil8376
    @mohammadakil8376 Před rokem

    Excellent video can you please make video on react + typescript

  • @rajmaidu5157
    @rajmaidu5157 Před rokem

    Thanks Hitesh this would help a lot👍

  • @sherhasan8896
    @sherhasan8896 Před 4 měsíci

    such a nice video to learn ts

  • @mritunjaysharma4852
    @mritunjaysharma4852 Před rokem

    Best quality. Really helpful

  • @viveksawant8401
    @viveksawant8401 Před 29 dny

    a big thank you!

  • @ninja-gh
    @ninja-gh Před rokem

    Quality of video is awesomeness 🔥

  • @avinashgavandhe6140
    @avinashgavandhe6140 Před rokem +1

    Thanks a lot

  • @zakariyyaraji9579
    @zakariyyaraji9579 Před rokem

    Hi please what keyboard is that on your desk if i may ask, thanks ?

  • @skum8419
    @skum8419 Před rokem

    Could you please do a video for Cypress as well as GraphQL in Cypress?

  • @arunbm123
    @arunbm123 Před rokem

    Your Video is made me perfect...

  • @pathtosuccess9431
    @pathtosuccess9431 Před 4 měsíci

    please start a backend devlopement is typescript