Learn JavaScript OBJECTS in 7 minutes! 🧍

preview_player
Показать описание
#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,
}

Рекомендации по теме
Комментарии
Автор

// 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"),
}




person1.sayHello();
person1.eat();
person2.sayHello();
person2.eat();

BroCodez
Автор

Easy and straight to the point. Well done 👍

ishu.ishaan
Автор

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

WorkSmarter__
Автор

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

furiousmanofgaming
Автор

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

sahkopibg
Автор

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

Qurbanmuhammadali
Автор

lolll those voices imitations are amazing

hunin
Автор

Bro genuis. He never disappoints. Thank u sir

djfago
Автор

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

stayalivewithjohn
Автор

Thanks so much. Your contents are attraction to me

nguyenphulam
Автор

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

Arona-ueop
Автор

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

vallunacoder.wecodetogether
Автор

Patrick would say "No! This is Patrick!"

NickTorius
Автор

"he just watches tv wholeday 🤣" i love patrick

DojoDyo
Автор

You have just saved me before my internship interview lmao 💗

jessicadinova
Автор

Nice to listen to you ... pleasant voice!

Tage-in-Weimar
Автор

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

Russellyeman
Автор

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

I_am_Ragupathi
Автор

Nice video. Also the voice was not cringe.

squidwardthemathematician
Автор

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

lassitoytari
welcome to shbcf.ru