Premium Only Content

JavaScript CONSTRUCTORS in 5 minutes! ðŸ›
#JavaScript #tutorial #course
// constructor = special method for defining the
// properties and methods of objects
function Car(make, model, year, color){
this.make = make,
this.model = model,
this.year = year,
this.color = color,
this.drive = function(){console.log(`You drive the ${this.model}`)}
}
const car1 = new Car("Ford", "Mustang", 2024, "red");
const car2 = new Car("Chevrolet", "Camaro", 2025, "blue");
const car3 = new Car("Dodge", "Charger", 2026, "silver");
car1.drive();
car2.drive();
car3.drive();
console.log(car1.make);
console.log(car1.model);
console.log(car1.year);
console.log(car1.color);
console.log(car2.make);
console.log(car2.model);
console.log(car2.year);
console.log(car2.color);
console.log(car3.make);
console.log(car3.model);
console.log(car3.year);
console.log(car3.color);
-
8:24
Hollywood Exposed
13 hours agoCNN Host Turns on Democrats LIVE And Bill Maher Can’t Believe It!
3.34K9 -
30:59
Uncommon Sense In Current Times
17 hours ago $0.45 earnedImmigration, Crime & Justice Reform | Brett Tolman on Borders, Cartels & the First Step Act
10.4K1 -
15:36
The Gun Collective
13 hours agoWOW! Tons of NEW GUNS just dropped!
4.23K10 -
LIVE
BEK TV
23 hours agoTrent Loos in the Morning - 10/08/2025
150 watching -
2:21
NAG Daily
12 hours agoPOLITICAL FAMILY GAMESHOW w/ GreenMan Reports
4.07K -
0:49
OfficialJadenWilliams
16 hours agoGTA 6 is downloading but you hear trumpets outside
4.29K4 -
1:02:11
DeVory Darkins
15 hours ago $41.70 earnedDemocrats suffers ANNIHILATION during heated hearing with Bondi as Jack Smith bombshell drops
171K133 -
57:17
Dialogue works
2 days ago $3.36 earnedAmb. Chas Freeman: Israel on the EDGE: Is TOTAL DEFEAT IMMINENT?!
39.4K21 -
14:06
Actual Justice Warrior
1 day agoSomali Medicaid SCAMMER Says Theft Is HIS CULTURE
20.4K26 -
10:27
itsSeanDaniel
2 days agoCBS Host INSTANTLY REGRETS Interrupting MAGA SuperStar
24.8K13