JavaScript Classes Tutorial

Поделиться
HTML-код
  • Опубликовано: 26 июл 2024
  • In JavaScript you can use the OOP (Object-Oriented-Programming) feature of "classes" to construct objects which are then useful resources for your script/application.
    Learn all about classes in JavaScript in this video.
    ⭐️ Course Contents ⭐️
    ⌨️ (00:00) The Basics
    ⌨️ (14:40) Getters and Setters
    ⌨️ (22:43) Static Methods
    ⌨️ (30:11) Inheritance and Extends
    ⌨️ (40:22) Polymorphism
    ⌨️ (46:00) Classes in Practice
    Learn more about JavaScript in this full course: • JavaScript Basics Course
    🎥Tutorial by dcode. Check out the dcode channel for more great tutorials: / @dcode-software
    🐦dcode on Twitter: @dcodeyt
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: medium.freecodecamp.org

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

  • @dcode-software
    @dcode-software 5 лет назад +324

    Sorry about the light theme! I'll promise to use a dark theme for all my future videos 😁

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

      Which theme is that ?

    • @dcode-software
      @dcode-software 5 лет назад +7

      @@magakz from memory that one is the Brackets Light theme

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

      light theme is better for people with sight problems

    • @clarkrc82
      @clarkrc82 5 лет назад +38

      Yeah but light theme causes sight problems for those of us who DONT have sight problems lol

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

      I know it sounds odd, but I work with light themes. 😅 And this theme is really good!

  • @karinmeersman5123
    @karinmeersman5123 5 лет назад +52

    beautifully explained. I especially appreciate the fact that you show how classes can be used in real situations. Often that is missing and then the explanation will not stick. I loved it!

  • @user-hs6tg6zy4e
    @user-hs6tg6zy4e 11 месяцев назад +8

    I've been studying for 6 months. I aspire to be a web developer.
    In my 6 months, of all the topics i had to learn, this was the best teaching video I've watched. Also, I never comment, but this time I had to.
    Thank you,

  • @KevinRamirez-vw5kv
    @KevinRamirez-vw5kv 3 года назад +15

    Best video I've seen on classes. First time they really made sense.

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

    Here are some more JavaScript resources:
    JavaScript basics course: ruclips.net/p/PLWKjhJtqVAbk2qRZtWSzCIN38JC_NdhW5
    Another JavaScript course: ruclips.net/video/_y9oxzTGERs/видео.html
    Learn JavaScript in a text-based curriculum: www.freecodecamp.org

  • @jacobwilsh8517
    @jacobwilsh8517 2 года назад +8

    This was a great tutorial. Concise, clear, straight to the point. Thank you

  • @Kayotesden
    @Kayotesden 4 года назад +5

    A wonderful & comprehensive revision of basics on Classes. I loved it. Thank you.

  • @sumanboi
    @sumanboi 3 года назад +10

    "the programmer issa special type of person" 36:00 killed me 😂 🤣

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

    This is super helpful! I watched many videos on OOP but this one by far more explanatory than all of them. THANK YOU!!!!

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

    A very helpful refresher course! Thanks Dom!

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

    I searched a lot to find this amazing class toturial. I can't say how thankful I am. It was the best explanation for class on the internet. God bless you❤🙏🏽

  • @starnsboy
    @starnsboy 5 лет назад +23

    This is great! Do not be put of by the 1 hour length. Its worth a watch!

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

    Great tutorial, excellent explanations, thanks a lot!

  • @user-tj6ob8jz8h
    @user-tj6ob8jz8h Год назад

    Enjoyed every second of the tutorial! Especially the practice part. Thank you a lot ;)

  • @RosanaMoreno-vm5df
    @RosanaMoreno-vm5df Год назад +1

    Thanks a lot for the beginner-friendly classes' lesson!!! It was easy to understand and entertaining to watch

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

    Amazing content! Well explained, just to the point! Thanks A LOT!

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

    Thank you. I liked the video, it is good and I've learned quite a bit. Just one thing about the last example of DOM manipulation - it was a bit harder to understand, because I felt that not all was laid out in a clear and correct order, so it was a bit confusing. But still - great job, thanks again.

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

    Ohhh, fantastic tutorial, thanks for the lesson!

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

    Thank you so much. I've found this playlist to be the best JS Classes tutorial out there.

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

    Great video .
    Neat introduction into the Class syntax and all its keywords .
    Thanks !

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

    This video inspired me to add get and set properties to my own scripting language. Great video as always!

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

    Thanks, i liked it a lot. Its really concise and easy to understand. This help a lot for the basics.

  • @sivko23
    @sivko23 5 лет назад +95

    who else loves the sound of keyboard?

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

      seriously, get a mic!

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

      Me

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

      sound of keyboard is pretty cool but on white theme background it sucks :'(

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

      It gives me chills lol

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

    thank you for the tutorial, it really helps me out.

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

    Amazing tutorial, makes OOP really easy to dive into !

  • @PapaWilk
    @PapaWilk Год назад +3

    on-screen tutorials like this are such a valuable resource. I followed along until the Classes in Practice section. I lost sight of what we were doing and why we would want to be doing it on our website. While I lost sight of the "big picture," the author's attention to detail was impeccable. Good video.

    • @ChrisTian-ox5nr
      @ChrisTian-ox5nr 8 месяцев назад

      OOP can be especially beneficial when building complex websites or applications where you need to model different entities, such as users, products, or orders, and their interactions. It provides a clear and structured way to represent and manipulate these entities in your code.

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

    Great lesson, thanks!

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

    Thank you very much! Very clear!

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

    a perfect explanation with examples , i would appreciate

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

    Thank you for your effort!

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

    excelently explained. Thank you.

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

    Super easy to understand. Thank you

  • @user-ke4yx6uw1r
    @user-ke4yx6uw1r 2 года назад

    Amazing amazing amazing.
    Absolutely loved it.
    Thank you very much.

  • @user-ye4lg5im9y
    @user-ye4lg5im9y 3 года назад

    Great tutorial! Thanks.

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

    Really helpful, thank you!

  • @ArmandoPineda4
    @ArmandoPineda4 11 месяцев назад

    This was great, thanks!

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

    This is how front end frameworks are made, from minute #46. Great tutorial

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

    I finally conquered javascript classes basics, thanks to you!

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

    Great explaining skills. Thx!!

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

    Thank god it took me 10 hours to watch and practice it throughly. Now, Im through! Thanks a lot coach!

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

    The best OOP lesson i've ever taken!

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

    really understandable. thank you for your work

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

    This has really helped! thanks :)

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

    Thank you. I very mush appreciated the example with an actual real world implementation of a class.

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

    short, compact and to the point

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

    One of the best tutorials!

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

    Great video, you have made my career !!

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

    thank you for this video. :)

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

    Great content !

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

    Useful lesson!

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

    Amazing tutorial, really helpfull. Subscription earned!!

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

    Great Tutorial. Thanks you very much.

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt 5 лет назад

    Thank u for this awesome video

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

    Thank you bro. Very well understood.

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

    Brilliant class, thx a lot

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

    He's name is DOM can there a better teacher for this class? Oh man!!! great class and very constructive lessons(excuse me there). I needed this because I was about to assume that classes were a react.js syntax

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

    Good stuff 👍

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

    Great tutorial.

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

    This might be the first tutorial I have seen that's in bright mode 🤪

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

    excellent tutorial thanks alot

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

    Dom is the best. The fact that he used underscore on the argements to not get more confusing is key. Most of the tutorials just put this.abc = abc and it's very confusing.

  • @Joseph.Ashenafi
    @Joseph.Ashenafi Год назад

    wuu 🤩 , great tutorial

  • @tyresew.4233
    @tyresew.4233 5 лет назад +8

    This is free information!!!

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

    Simple & to the point :)

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

    Thank you for this.

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

    Thank you so much.

  • @EsnoFava
    @EsnoFava 7 месяцев назад

    Thanks, I hate reading MDN docs, this is so much better.

  • @user-xz8of6pk8q
    @user-xz8of6pk8q 8 месяцев назад

    Thank for the explanation. Espcially the real situation.

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

    what a very cool tutorial ❤❤.

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

    Thanks for your tutorial, really good.

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

      Ops, I have watched it 2 years ago, finally I re-watch again.haha

  •  2 года назад

    Thanks, I always was scared of classes, but now i see it's not thet hard

  • @markm8090
    @markm8090 3 года назад +5

    Although I'm close to completing a Udemy course, this vid has helped me to understand this part better. Know that this is an old video, but maybe would be better using dark mode in VS (little difficult for me to see the code on my screen). Thanks, love the tutorials! :)

    • @DineshKumar-jt5tr
      @DineshKumar-jt5tr 2 года назад

      bro can suggest me good javascript course in udemy for begginer to advance

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

    Awesome tutorial

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

    thank you so much.....

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

    Beautiful explanation

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

    Awesome tutorials

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

    Thanks for the video! You did a really good job explaining classes, and I really appreciate using an example at the end of what a class would be used to manipulate the DOM. It actually helps understand the usefulness of classes.

  • @sowmyakonkala1046
    @sowmyakonkala1046 2 месяца назад

    very nice video for the first time it did not feel like its an hour video

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

    this is wonderful

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

    Thank You for your useful video!

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

    I think this is the only tutorial on youtube where classes are shown in practice. Other tutorials only show theory so to speak and watching them you don't know how to use this theory in real life application.

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

    great explanation

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

    Super bro...!

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

    Thanks a lot

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

    That was great

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

    beautifully explained

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

    Fixed my problem with super()! Thank you!

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

      I'm still having a problem where the class isn't being updated.

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

    fantastic.....

  • @mcurtis13
    @mcurtis13 5 лет назад +23

    Thanks I now understand react lol

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

      yeah in fact I came here because of class-based react components.

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

      Michael Curtis
      Wow this is insane , I mean shouldn't you understand vanilla javascript before working with any framework ?
      Just saying ...

  • @aylincelik6586
    @aylincelik6586 10 месяцев назад

    thank youu😊

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

    Thank you

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

    very nice

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

    Super explanation :)

  • @Ali-lm7uw
    @Ali-lm7uw 5 лет назад +1

    Nice tutorial. Is there anymore to OOP than this or is knowing this enough?

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

    thanks sir😊

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

    What is the keyboard of your choice?
    Thank for the video.
    It will be nice if there are some more practice examples, but either way - it is quite resourceful.

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

    very good video

  • @mariyahadzhiyska7681
    @mariyahadzhiyska7681 10 месяцев назад

    Thank you! The tutorial was really helpful!

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

    thank you