assign branch #2

Merged
JMR-dev merged 5 commits from assign-branch into main 2021-10-06 15:29:02 +00:00
2 changed files with 22 additions and 0 deletions
View File
+22
View File
@@ -0,0 +1,22 @@
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, "Soft, plushy, and cute! Perfect for infants all the way up to 7 years old!", "Beanie Babies");
console.log(buildingBlocks);
console.log(hotWheels);
console.log(stuffedAnimals);