import backpackObjectArray from "./components/data.js";
const article = document.querySelector("main");
// map() through the stuff array to make a new stuffItems array.
const packList = backpackObjectArray.map((item) => {
const content = `
${item.name}
Volume: ${
item.volume
}l
Color: ${
item.color
}
Age: ${item.backpackAge()} days old
Number of pockets: ${
item.pocketNum
}
Left strap length: ${
item.strapLength.left
} inches
Right strap length: ${
item.strapLength.right
} inches