ch 7 excercise, but whatever

This commit is contained in:
2021-10-07 11:57:33 -05:00
parent 2a5c9fea6d
commit 8310d48b47
+2 -4
View File
@@ -22,7 +22,6 @@ const buildingBlocks = createtoyobj(1, "building blocks", "construction toy", `$
const hotWheels = createtoyobj(2,"hot wheels set", "toy vehicles",`${100.00}`, true, "Beautifully painted model cars! Durable and will keep children entertained for hours. (Not for children under the age of 5, small parts/swallowing hazard", "Mattel");
const stuffedAnimals = createtoyobj(3,"Beanie Babies", "Stuffed Animals", `${15.00}`, false, "Soft, plushy, and cute! Perfect for infants all the way up to 7 years old!", "Beanie Babies");
toys.push(buildingBlocks, hotWheels, stuffedAnimals)
/* for (const toy of toys) {
console.log(toys)
@@ -52,10 +51,9 @@ const dumptruck = createtoyobj(4,"dump truck", "toy vehicles", `${150.00}`, true
const racetrack = createtoyobj(5, "Race Track", "toy vehicles", `${200.00}`, false, "Fun place for kids to race their hotwheels!","Neumann" )
toys.push(dumptruck, racetrack)
toys.push(dumptruck, racetrack,buildingBlocks, hotWheels, stuffedAnimals)
console.log(toys);
for(const toy of toys){
console.log(toy.name)
console.log(`The ${toy.name} costs ${toy.price}.`)
}