From 8310d48b47c4aa51a28c26a2eff7a1bc13a0cbfa Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Thu, 7 Oct 2021 11:57:33 -0500 Subject: [PATCH] ch 7 excercise, but whatever --- scripts/leonids-toys.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/leonids-toys.js b/scripts/leonids-toys.js index 12ee2d5..814bfe6 100644 --- a/scripts/leonids-toys.js +++ b/scripts/leonids-toys.js @@ -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}.`) } \ No newline at end of file