From 572be9f8b18ea24c4f6db6b11e88956bfcc8578b Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Wed, 6 Oct 2021 09:54:55 -0500 Subject: [PATCH] Completed initial toy objects --- scripts/leonids-toys.js | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/scripts/leonids-toys.js b/scripts/leonids-toys.js index c360851..0993a26 100644 --- a/scripts/leonids-toys.js +++ b/scripts/leonids-toys.js @@ -1,11 +1,18 @@ -const buildingBlocks = { - id: 1 - name: "building blocks", - type: "construction toy", - price: `${10.00}`, - stock status: true, - item description: "High quality elm wood blocks perfect kids 2-5 years old to help develop motor skills and to develop creativity!", - manufacturer: "Hasboro" - +const createtoyobj = (number,toyname, typename, unitprice, stockst,description,toyman ) => { + return { + id: number, + name: toyname, + type: typename, + price: unitprice, + stockstatus: stockst, + itemdescription: description, + manufacturer: toyman + + } + } + +const buildingBlocks = createtoyobj(1, "building blocks", "construction toy", `${50.00}`,true,"Quality building blocks for inquiring and creative minds", "Hasboro"); +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, "Beanie Babies");