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);
-
32:09
Adam Does Movies
17 hours ago $0.51 earnedJurASSic World Rebirth Review - Recrap
1.83K5 -
12:22
The Gun Collective
18 hours agoWOW! SO MANY New Guns Just Came Out!
3.82K2 -
LIVE
BEK TV
3 days agoTrent Loos in the Morning 7/7/2025
164 watching -
LIVE
FyrBorne
2 hours ago🔴Warzone M&K Sniping: The Hardest Fights Forge The Strongest Warriors
216 watching -
8:11
MattMorseTV
14 hours ago $7.88 earnedMacron just SURRENDERED.
20.5K46 -
4:42:20
FusedAegisTV
1 day ago$1000 Fortnite Tournament | 19 TEAMS!! #RumbleGaming
81.5K3 -
10:39
NikkoOrtiz
2 days agoCooked TikTok Fails... Part 2
72.2K34 -
13:47
GritsGG
16 hours agoClutching a Quad Dubular w/ Mr. Bobby Poff!
32.1K1 -
15:58
BlabberingCollector
18 hours agoWorth It? Stenciled Edge Edition Of Harry Potter JUST RELEASED!
14.5K8 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
430 watching