Object Oriented JavaScript Tutorial #6 - Class Methods

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

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

  • @Cho1279624
    @Cho1279624 6 лет назад +9

    Wow! Now I can understand what I have always seen on the console in the Chrome browser! Thank you!!!!!!

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

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

    Yeah, finally i got main difference between objects and classes

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

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

    You just explained a ocean into a lake great video keep it up

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

    Encapsulation is so powerful :)

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

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

    Great explanation bro..
    Well explained..

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

  • @johnnygarces2216
    @johnnygarces2216 6 лет назад +8

    great video! just a question- what if you had to instantiate 100 users, or 1,000... Is there a looping structure that you'd have to utilize along with the class constructor? thank you!

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

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

      Put the new user in The loop and assign the new object to the indexed position in an array

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

    Thanks man this helped alot

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

    Which theme do you use in vs code? Because it looks really nice.

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

      monokai pro

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

  • @spooky_zoo
    @spooky_zoo 6 лет назад +3

    Class / constructor syntax highlighting for Sublime Text 2. Any recommendations? Great vids, thanks.

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

  • @256gardenofgod8
    @256gardenofgod8 4 года назад

    i have finally understood this

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

    If I understood correctly, properties inside the constructor() are specific to each object while properties outside the constructor() are essentially inside of the object prototype property?

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

    thanks

  • @amnaamin8967
    @amnaamin8967 6 лет назад

    excellent

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

    console.log(this.email, ' just logged in'); --> why there is a ", " comma after this.email ? :)

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

      I'm wondering the same thing!

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

      You need a comma or a plus to a concatenatea variable to a string. The comma just adds the space in between for you.

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

      @@nikulasoskarsson5472 bro you mean that it works same + or , . Or is there any other difference

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

      @@sayedsulimanvideos comma adds a space, plus doesn't

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

      @@sayedsulimanvideos From what I know, I don't think so. I personally write it like console.log(name, ''likes coding') since it's far easier.

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

    are classes still used in JavaScript ? hasn't everything shifted to being function based now?

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

      there are 2 different paradises in javascript, functional and object oriented. They are both used.

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

    what is your vs code theme name?/

  • @haroldguzman1285
    @haroldguzman1285 6 лет назад

    wow tnx

  • @davideugene7911
    @davideugene7911 6 лет назад

    Salut :)
    Big MERCI ;)

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

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

    how about we want to have math operator in class

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

    How to pass arguments to those functions?

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

  • @norbidrake
    @norbidrake 6 лет назад

    Why putting methods outside of constructor class ??

    • @architjaiswal1484
      @architjaiswal1484 6 лет назад +1

      because we use constructor only to initialize objects, methods have seperate role.

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

      think of the constructor as creating an obkect. but we are never really calling the methods until later.... it's the same principle as declaring a function but not executing it. if i create a constructor named class Man with a goFart() method its like declaring the function on Man... in other words its like saying "this is what you are supposed to do when i tell you to fart. i haven't actually executed it yet or told the Man to fart. i execute it by saying Man.goFart()
      hope that helps lol

  • @asaduzzaman5356
    @asaduzzaman5356 6 лет назад

    hey please give a real example after complete this ooj series as soon as possible

    • @raymondmichael4987
      @raymondmichael4987 6 лет назад

      asad uzzaman, you have a point there dude!!!
      I suggest a real world example, I know Ninja can find a way, and it doesn't have to be a free one, even a paid one that will be great; as we'll be saying "thanks" by buying it

    • @الإسلامدينالحق-خ5ت
      @الإسلامدينالحق-خ5ت 3 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life....
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

  • @zakariazahidi7888
    @zakariazahidi7888 6 лет назад

    what different between this
    function personne(name,prenome,login)
    {
    this.name=name;
    this.prenome=prenome;
    this.login=function()
    {
    console.log(this.name);
    }
    }
    var zakaria=new personne("zakaria","zahidi");
    console.log(zakaria.name);
    and this
    class personne
    {
    constructor(name,prenome){
    this.name= name;
    this.prenome = prenome;
    }
    login()
    {
    console.log(this.name);
    }
    }

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

      the first one is just way too complicated lol

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

    at tutorial#6: why am i getting "undefined" ---> undefined 'Just logged out'

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

    thanks for explaining the meta course does a horrible job explaining classes most of it is reading. i hate reading

  • @pesantrenalhilalbandung4294
    @pesantrenalhilalbandung4294 5 лет назад +10

    can i call you "senpai" ? (>v

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

    {2023-08-01}

  • @stefan4800
    @stefan4800 6 лет назад

    You didn't declare email and name as a global variables in the class, but you could refer and set this variables in the constructor. This is stupid feature and a bad practice in my opinion, these variables should be undefined. Why poeple who worked on ES6 make this posible and automatic, I don't know, but, in my opinion, it's dumb and a bad practice. If they introduce classes they should do it properly.