How to solve I do exactly the response about the prompt
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
selectContainer.addEventListener("change", () => {
productsContainer.innerHTML = instrumentCards(instrumentCategory);
});
// 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/136.0.0.0 Safari/537.36
as there said “set the inner HTML of productsContainer to the result of calling instrumentCards with the selected category option.” doesn;t that mean to say productsContainer.innerHTML = instrumentCards(instrumentCategory);
Not working with this code only giving the same problem all time
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
.join(""); // Important: join to convert array to a single HTML string
}
selectContainer.addEventListener("change", () => {
const instrumentCategory = selectContainer.value;
productsContainer.innerHTML = instrumentCards(instrumentCategory);
});
// 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/136.0.0.0 Safari/537.36
solving become hard for this please help with the problem
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
.join(""); // Join the array into a single string
}
selectContainer.addEventListener("change", (e) => {
const instrumentCategory = e.target.value; // Get the selected value
productsContainer.innerHTML = instrumentCards(instrumentCategory);
});
// Initialize with all instruments on page load
productsContainer.innerHTML = instrumentCards("all");
// 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/137.0.0.0 Safari/537.36