Learn JavaScript OBJECTS in 7 minutes! 🧍

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • #JavaScript #tutorial #course
    // object = A collection of related properties and/or methods
    // Can represent real world objects (people, products, places)
    // object = {key:value,
    // function()}
    const person1 = {
    firstName: "Spongebob",
    lastName: "Squarepants",
    age: 30,
    isEmployed: true,
    sayHello: function(){console.log("Hi! I am Spongebob!")},
    eat: function(){console.log("I am eating a Krabby Patty")},
    }
    console.log(person1.firstName);
    person1.sayHello();
    person1.eat();

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

  • @BroCodez
    @BroCodez  11 месяцев назад +23

    // object = A collection of related properties and/or methods
    // Can represent real world objects (people, products, places)
    // object = {key:value,
    // function()}
    const person1 = {
    firstName: "Spongebob",
    lastName: "Squarepants",
    age: 30,
    isEmployed: true,
    sayHello: function(){console.log("Hi! I am Spongebob!")},
    eat: function(){console.log("I am eating a Krabby Patty")},
    }
    const person2 = {
    firstName: "Patrick",
    lastName: "Star",
    age: 42,
    isEmployed: false,
    sayHello: () => console.log("Hey, I'm Patrick..."),
    eat: () => console.log("I am eating roast beef, chicken, and pizza"),
    }
    console.log(person1.firstName);
    console.log(person2.firstName);
    person1.sayHello();
    person1.eat();
    person2.sayHello();
    person2.eat();

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

      why you are not making android development tutorial?🥲🥲🥲🥲🥲

    • @HAITIANGPT
      @HAITIANGPT 5 месяцев назад

      Bro , please make some videos on API (REST, SOAP, BULK , etc..) Integration.

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

      Thanks big bro 💯💯💯your content is great. Love from Pakistan ✨️

  • @WorkSmarter__
    @WorkSmarter__ 10 месяцев назад +54

    as a java user, started learning js, all these objects, methods, functions, classes felt fcuked up to me at start

    • @AmirDark-fy3lc
      @AmirDark-fy3lc 5 месяцев назад

      it's real hell bro

    • @abineshkumar4927
      @abineshkumar4927 4 месяца назад

      Same here brosky

    • @wickedbitter
      @wickedbitter 4 месяца назад +1

      How long before you started to catch on? I just started a bootcamp. 3 weeks in and im lost af

    • @Mark-ps7eh
      @Mark-ps7eh 4 месяца назад

      @@wickedbitter what are you lost on? just javascript itself?

    • @wickedbitter
      @wickedbitter 4 месяца назад +1

      @@Mark-ps7eh mainly javascript for sure. But everything is confusing me right now

  • @ishu.ishaan
    @ishu.ishaan 9 месяцев назад +11

    Easy and straight to the point. Well done 👍

  • @Qurbanmuhammadali4455
    @Qurbanmuhammadali4455 5 месяцев назад +3

    Hey Friend, Your teaching method is very good and easy to understand for beginners ❤. Thank you so much.

  • @sahkopi4bg18
    @sahkopi4bg18 2 месяца назад +3

    Thank you very much!!!! I was always confused what was the difference between a function and a method! Now I know.

  • @lassitoytari5360
    @lassitoytari5360 6 месяцев назад +2

    please tell me you didn't do extensive research on how old spongebob and patrick are.

  • @DojoDyo
    @DojoDyo 5 месяцев назад +3

    "he just watches tv wholeday 🤣" i love patrick

  • @anuamba
    @anuamba 10 месяцев назад +5

    Bro mastered all languages

  • @furiousmanofgaming6733
    @furiousmanofgaming6733 10 месяцев назад +4

    Thanks so much I have subscribed and liked, you are absolutely amazing bro.❤

  • @hunin27
    @hunin27 11 месяцев назад +5

    lolll those voices imitations are amazing

  • @MohammedSaif-ik5yq
    @MohammedSaif-ik5yq 20 дней назад +1

    After seeing this, I feel guaranteed that my life is safe

  • @Arona-ue6op
    @Arona-ue6op 3 месяца назад +1

    Nahh bro that wasnt cringe, i kinda felt it:) thank you very much for the tutorial!

  • @Russellye5man1
    @Russellye5man1 7 месяцев назад +1

    Could you not have included a parameter in one of those functions? Might have been helpful.

  • @Allisloveloveisall
    @Allisloveloveisall 7 дней назад

    Thankyou So MUCH!! This was so helpful, I have to follow for more of your videos! :)

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

    This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.

  • @I_am_Ragupathi
    @I_am_Ragupathi 10 месяцев назад +2

    ComeBack brooo... please upload more and more javascript and react videos for us ... please master... i am your BIGGEST FAN..... Bigger than a WINDMILL... PLEASE UPLOAD FAST AND MORE ABOUT JS and REACT JS.... I NEED FULL DETAIL OF Mapping function.. please MASTER...

  • @valecito.33
    @valecito.33 18 дней назад

    Coming from lower level languages and type safe oop it feels somewhat bizarre what JS allows you to do

  • @Murilo-gq6hq
    @Murilo-gq6hq 7 месяцев назад +1

    Uh... are you MrGamesRus? Same voice

  • @vallunacoder.wecodetogether
    @vallunacoder.wecodetogether 8 месяцев назад +1

    the one and only JavaScript course that doesn't confused you ❤❤❤❤

  • @Gigglesaintlame
    @Gigglesaintlame 11 месяцев назад +2

    start of day 4

  • @djfago6240
    @djfago6240 10 месяцев назад +1

    Bro genuis. He never disappoints. Thank u sir

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

    Patrick would say "No! This is Patrick!"

  • @kacheungchan3764
    @kacheungchan3764 10 месяцев назад +2

    it seems you don't need to declare the variables (properties), why?

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

      When using const or let you dont redeclare only var which you redeclare.

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

      Also when using const and let you dont bind “this”

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

      What can be redeclared can be hoisted and binded to “this”

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

    thanks for clearing this for me sir i was having hard time to understand this

  • @DojoDyo
    @DojoDyo 5 месяцев назад +1

    ty

  • @gabrielmascia5460
    @gabrielmascia5460 8 дней назад

    dude you made it super easy for me thanks!

  • @richdevil5816
    @richdevil5816 4 дня назад

    Brocode,you are the Great!!

  • @mohamedlasghar
    @mohamedlasghar 5 месяцев назад +1

    waw thank you brathers

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

    Thanks so much. Your contents are attraction to me

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

    4:26

  • @LokeshKumar-tk7ri
    @LokeshKumar-tk7ri 13 дней назад

    Bro voice: akkhgjjjllkkkkkkkkkhghlk

  • @maryann0406
    @maryann0406 4 месяца назад +1

    thanks

  • @constantinedemiris3522
    @constantinedemiris3522 3 месяца назад +1

    Excellent 👌🏾

  • @Hshjshshjsj72727
    @Hshjshshjsj72727 28 дней назад

    JS is ok but spongebob is 🔥

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

    14/7/24 10:11pm

  • @groovymono7303
    @groovymono7303 6 месяцев назад +1

    Just wowwww❤❤❤

  • @fahiyangtech
    @fahiyangtech 10 месяцев назад +1

    ❤❤❤❤❤❤❤

  • @BrianMwaura-p1q
    @BrianMwaura-p1q 8 месяцев назад +1

    woooow, thank you so much.

  • @ice-o3i
    @ice-o3i Месяц назад

    THX Bro!!

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

    Straight to the point

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

    nice video

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

    Nice video. Also the voice was not cringe.

    • @BroCodez
      @BroCodez  10 месяцев назад +2

      Your profile pic is great 🤣

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

      ​@@BroCodez😂

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

      @@BroCodez ΤΗΑΝΚ YOU. I am a fellow Spongebob fan. Your channel is the most useful source of programming.

  • @jessicadinova170
    @jessicadinova170 4 месяца назад +1

    You have just saved me before my internship interview lmao 💗

  • @Tage-in-Weimar
    @Tage-in-Weimar 3 месяца назад +1

    Nice to listen to you ... pleasant voice!

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

    RUclips has Spongebob episodes in the recommended videos sidebar next to this 😂