diff --git a/leonids-toys.js b/leonids-toys.js deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/leonids-toys.js b/scripts/leonids-toys.js new file mode 100644 index 0000000..0993a26 --- /dev/null +++ b/scripts/leonids-toys.js @@ -0,0 +1,18 @@ +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");