@BroCodez

// 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();

@WorkSmarter__

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

@ishu.ishaan

Easy and straight to the point. Well done 👍

@hunin27

lolll those voices imitations are amazing

@vkfilmhouse

You really teaches us in simple wording.

@vallunacoder.wecodetogether

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

@sahkopi4bg18

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

@osogamer-f6l

4:27 np (no problem)

@matthewstar2880

You make it seem sooooooo easy, it's a lot more simple when you explain it. Great tutorial.

@OMGWorks-b4r

Thankyou, you explained it in a very deep and understandable way!!

@sayanbhowmick9203

Prolly the best way to teach what is object in JS! Thanks for such a straight forward video

@ocelotta

thanks for breaking everything down so clearly!

@stephaniestilwell1271

Thank you so much. I love the way you explain this.  So appreciate it :)

@djfago6240

Bro genuis. He never disappoints. Thank u sir

@stayalivewithjohn3039

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

@Salainganba-v6i

This kind of video helps me a lot thank you very much.

@DojoDyo

"he just watches tv wholeday 🤣" i love patrick

@Qurbanmuhammadali4455

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

@jessicadinova170

You have just saved me before my internship interview lmao 💗

@ZariusIRL

Straight to the point