Tell us what’s happening:
The test wants me to give the h2 the text of the name variable. I don’t know if that means name.text, or name in an attribute of h2, or what. Please help me understand what the text of name is.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
products.forEach(
({ name, id, price, category }) => {
dessertCards.innerHTML += `
<div class="dessert-card"><h2>name</h2></div>
`;
}
);
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Challenge Information:
Build a Shopping Cart - Step 11