Tell us what’s happening:
now this is my code
return instruments.map(({ instrument, price }) => <div class="card"> <h2>${instrument}</h2> <p>$${price}</p> </div>
).join(“”); and i am still getting an error in the 14th step i don’t know why
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
const productsContainer = document.querySelector(".products-container");
function instrumentCards(instrumentCategory) {
const instruments =
instrumentCategory === "all"
? instrumentsArr
: instrumentsArr.filter(
({ category }) => category === instrumentCategory
);
return instruments.map(({ instrument, price }) => `
<div class="card">
<h2>${instrument}</h2>
<p>$${price}</p>
</div>
`).join("");
}
// User Editable Region
/* file: styles.css */