Learn JavaScript OBJECTS in 7 minutes! 🧍

Published: 14 November 2023
on channel: Bro Code
59,948
1.6k

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


On this page of the site you can watch the video online Learn JavaScript OBJECTS in 7 minutes! 🧍 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 14 November 2023, share the link with friends and acquaintances, this video has already been watched 59,948 times on youtube and it was liked by 1.6 thousand viewers. Enjoy your viewing!